PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → DotNET Aseemblie
DotNET Aseemblie
Iniciado por giraubrx, 08,abr. 2020 15:54 - 1 respuesta
Publicado el 08,abril 2020 - 15:54
Hello,

I am starting with DotNet.
I have to integrate a DotNet assemblie in a project Windev.
The objective is to Extract each page of a multipages PDF file to multiples JPG files.

I had to generate a DLL DotNet with the original C++ code with Visual Studio
I imported in the Windev project. Everything is OK.
Name of the Dot Assemblie in the Project : "ILOVEPDF" .

However I am blocking to traduce the original instructions to Windev.

5 fases step by step (.NET):

0) ///// Authentication : var api = new LovePdfApi("PUBLIC_KEY", "SECRET_KEY");
///// Sequence to Extract JPG files from a PDF Files
1) START TASK : var task = api.CreateTask<PDFtoJPGPTask>();
2) UPLOAD FILES : var file1 = taskCompress.AddFile("path/to/file/file1_name.pdf");
var file2 = taskCompress.AddFile("path/to/file/file2_name.pdf");
3) PROCESS FILES : taskPDFtoJPG.Process(new PDFtoJPGParams{PdfJpgMode = PdfJpgModes.extract});
4) DOWNLOAD : taskPDFtoJPG.DownloadFile();

Can you give some suggestions to unblock the situation, please . Thanks.

Best Regards


Chris
Publicado el 08,abril 2020 - 21:26
if you are doing this as a test about .net, I cannot help you.

However, if your objective is REALLY to Extract each page of a multipages PDF file to multiples JPG files, then you don't need anything external to do that, a few lines of wlanguages will do that easily...

Just do a search on this forum or the french one, I know that this subject has been treated MANY times (I remember several answers from Fabrice Harari about that subject)... One image field, a few lines of codes, and you are set.