Rank: Member
Groups: Registered
Joined: 8/13/2019(UTC) Posts: 19 Location: New York Thanks: 2 times
|
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
|
|
|
|
Rank: Administration
Groups: Administrators
Joined: 1/5/2016(UTC) Posts: 1,107
Thanks: 7 times Was thanked: 130 time(s) in 127 post(s)
|
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);
}
|
|
|
|
Forum Jump
You can post new topics in this forum.
You can reply to topics in this forum.
You can delete your posts in this forum.
You can edit your posts in this forum.
You cannot create polls in this forum.
You can vote in polls in this forum.
Important Information:
The Patagames Software Support Forum uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close