문제

Please refer to Get PDF hyperlinks on iOS with Quartz

It explained an algorithm to find the the pdf hyperlink and its coordinate.I followed this post and write my own pdf reader. It works well for most of the pdf files but not for one pdf file. The problem is the coordinate of the hyperlink is not correct.

Here is the pdf I created the hyperlink:

Using Acrobat 10 to create a hyperlink in origin (0,0)

I created a hyperlink from Adobe acrobat 10.0. The origin of this hyperlink is almost at (0,0).Then I use the algorithm to parse my pdf file. To my surprise the result rect is:

link rect = {{63, 123}, {173, -158}}

So when I render this rect in screen, it's something like this:

enter image description here

What could be reason? Can anybody advise? Thanks

By the way, if there is a way to upload my sample pdf file here?

도움이 되었습니까?

해결책

Have you allowed for a cropbox?

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top