Print Page | Close Window

Text to link miscalculation

Printed From: Foxit's Planet PDF Forum
Category: Lets Talk PDF
Forum Name: PDF Developers
Forum Description: This conference is for PDF developers.
URL: http://forums.planetpdf.com/forum_posts.asp?TID=2046
Printed Date: 16 Jul 2019 at 9:41am
Software Version: Web Wiz Forums 11.10 - http://www.webwizforums.com


Topic: Text to link miscalculation
Posted By: rjplummer
Subject: Text to link miscalculation
Date Posted: 15 Sep 2016 at 11:42pm
I have code that creates a link with a box calculated from text position. 
It uses the Matrix2D class, based on the example code in Adobe's JavaScript Reference (and reproduced many other places).

It works fine almost always, but I've come across a document where, on certain pages, the box is offset approx 15 pts up and to the left from where it's supposed to be. I've used the straight Adobe code (that uses a single word) and get the same behavior. I thought it might be the Crop Box or one of the other boxes that was causing the translation but none of those values was different from pages that worked correctly.

Anybody know what's going on?



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.10 - http://www.webwizforums.com
Copyright ©2001-2017 Web Wiz Ltd. - https://www.webwiz.net