Loading...

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

I want to open a PDF document and convert it to a graphic file. The API shows LoadInput(Byte[] inputBuffer, …) where inputBuffer is the memory buffer containing the input document to be imported into PDF2IMG. But how do I fill that buffer with the PDF file?

Simply enter the name of the PDF file in LoadInput, something like this:

PDFGenerator.LoadInput("C:\Sample\Sample.pdf")

You can then use ConvertPageToImage or ConvertAllPagesToTIFFImage as your next API call convert the PDF pages to TIFF files.

We provide more information about these APIs.