Community ForumCategory: Questionshow to open a PDF file with PDF2IMG
Wesley asked 4 months ago

I want to open a pdf and convert it to tiff. The API shows this:
LoadInput(Byte[] inputBuffer, …)
Where inputBuffer is “The memory buffer containing the input document to be imported into PDF2IMG”.
My question is, how do I fill that buffer with the PDF file? Do I just say “LoadImput( “c:\temp\mypdf.pdf”) ?
Or do I have to create a buffer and load it? And how would I do that using C#? Is there an example program somewhere?

1 Answers
Datalogics Staff answered 4 months ago

Hi Wesley,

Having the file name like that in LoadInput would be acceptable. Something like this:
PDFGenerator.LoadInput(“C:\Sample\Sample.pdf”)

You can then use ConvertPageToImage or ConvertAllPagesToTIFFImage as your next API call to get what you want done.

You can find more information about these APIs and all the others here:
https://dev.datalogics.com/datalogics-pdf-to-image/appendix-api-calls-net-interface/

Thanks,
Datalogics Support

Top