how to open a PDF file with PDF2IMG

Community ForumCategory: PDF2IMGhow to open a PDF file with PDF2IMG
Wesley asked 2 years 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 2 years 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

Get instant access to the latest PDF news, tips and tricks!

Do you want monthly updates on the latest document technology trends?

By submitting the form, you agree to receive marketing emails from Datalogics. You may unsubscribe at any time.