logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Post a reply
From:
Message:

Maximum number of characters in each post is: 32767
Bold Italic Underline   Highlight Quote Choose Language for Syntax Highlighting Insert Image Insert an existing Attachment or upload a new File... Create Link   Unordered List Ordered List   Left Justify Center Justify Right Justify   Outdent Indent   More BBCode Tags
Font Color Font Size
Security Image:
Enter The Letters From The Security Image:
  Preview Post Cancel

Last 10 Posts (In reverse order)
Paul Rayman Posted: Tuesday, November 1, 2022 8:53:33 PM(UTC)
 
Hello,

All these functions are encapsulated in the Pdfium class.

You can use this low-level API independently of the class library.
Code:
IntPtr doc = Pdfium.FPDF_LoadDocument(@"test.pdf", "");
Pdfium.FPDF_GetPageSizeByIndex(doc, 1, out double width, out double height)
Pdfium.FPDF_CloseDocument(doc);


Or combine these calls with a class library.
Code:

using( var doc = PdfDocument.Load(@"test.pdf))
{
    Pdfium.FPDF_GetPageSizeByIndex(doc.Handle, i, out double  w, out double  h);
}




ESchunk Posted: Wednesday, October 19, 2022 1:55:15 PM(UTC)
 
Is it possible to call FPDF functions? For example, I want to use FPDFText_GetBoundedSegment. If it is possible can you provide a sample of how I call the function?

Thanks,

Ted