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

Notification

Icon
Error

New Topic Post Reply
Options
Go to last post Go to first unread
ESchunk  
#1 Posted : Wednesday, October 19, 2022 1:55:15 PM(UTC)
Quote
ESchunk

Rank: Member

Groups: Registered
Joined: 8/13/2019(UTC)
Posts: 19
United States
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
Paul Rayman  
#2 Posted : Tuesday, November 1, 2022 8:53:33 PM(UTC)
Quote
Paul Rayman

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);
}




Quick Reply Show Quick Reply
Users browsing this topic
New Topic Post Reply
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.