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.
Printed Date: 18 Oct 2019 at 12:49pm
Software Version: Web Wiz Forums 11.10 -

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 -
Copyright ©2001-2017 Web Wiz Ltd. -