Polybios doesn't find links from all PDFs

Discuss PDF file handling with the Polybios plugin here
Post Reply
User avatar
jPV
Posts: 600
Joined: Sat Mar 26, 2016 10:44 am
Location: RNO
Contact:

Polybios doesn't find links from all PDFs

Post by jPV »

I have many PDF files where you have some kind of links, they are clickable on VPDF and other readers, but for some reason Polybios doesn't see them. Are there some other kind of links that Polybios doesn't support or why doesn't it find them?

For example this file: PDFReference.pdf

And this code:

Code: Select all

@REQUIRE "polybios", {Version=1, Revision=1}
pdf.OpenDocument(1, "PDFReference.pdf")
id, t = pdf.GetBrush(1, 3, 1, False, True)
ChangeDisplaySize(GetAttribute(#BRUSH,1,#ATTRWIDTH), GetAttribute(#BRUSH,1,#ATTRHEIGHT))
DisplayBrush(1,0,0)
DebugPrint(ListItems(t), "links")
WaitLeftMouse()
Gives you "0 links", while there should be clickable links in the table of content page.
User avatar
airsoftsoftwair
Posts: 5425
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Polybios doesn't find links from all PDFs

Post by airsoftsoftwair »

Code: Select all

- Fix: pdf.GetPageLinks() and its counterpart in pdf.GetBrush() didn't parse all page links correctly
Post Reply