Page 1 of 1

Polybios doesn't find links from all PDFs

Posted: Sat Jul 13, 2019 1:07 pm
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))
DebugPrint(ListItems(t), "links")
Gives you "0 links", while there should be clickable links in the table of content page.

Re: Polybios doesn't find links from all PDFs

Posted: Sun Jul 14, 2019 4:54 pm
by airsoftsoftwair

Code: Select all

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