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)
pmilin Posted: Wednesday, April 22, 2020 9:51:12 AM(UTC)
 
Ok. No problem I can call the GetByName method afterward. I was just looking to optimize if possible.
Paul Rayman Posted: Wednesday, April 22, 2020 9:45:45 AM(UTC)
 
Originally Posted by: pmilin Go to Quoted Post

Is there a way to turn that handle into a destination.


Unfortunately, a suitable constructor has the Internal modifier. So only through Reflection.
pmilin Posted: Wednesday, April 22, 2020 9:02:12 AM(UTC)
 
Thanks. That seems to do the trick.

Is there a way to turn that handle into a destination.
Paul Rayman Posted: Wednesday, April 22, 2020 6:04:07 AM(UTC)
 
Try this

Code:
IntPtr handle = Pdfium.FPDF_GetNamedDestByName(doc.Handle, name);
if (handle == IntPtr.Zero)
    //The named destination is absent.


pmilin Posted: Tuesday, April 21, 2020 12:33:25 PM(UTC)
 
When looking for named destinations in a pdf using the Document.NamedDestinations.GetByName() method, it takes a long time to return if the destination cannot be found. I have a doc with thousands of destinations. If the destination is found, it returns quickly.

Is there a better way to determine if the destination exists before getting it? Using the Item[String] property is slow as well.