[reportlab-users] Forcing URL's to load PDF's into Acrobat

andrew mercer andrew at sundayta.com
Fri Feb 25 09:26:01 EST 2005


Hi,

Timothy Smith wrote:

> andrew mercer wrote:
> 
>> Hi,
>>
>> Can't find this in the docs, code or archive list.
>>
>> Is there a way to force Urls within a PDF file to ALWAYS load the 
>> document for that link into acrobat?
>>
>> Currently it loads into a Browser - however the file I have created is 
>> an index file to many PDF's which our customer wants to always open in 
>> Acrobat.
>>
>> Thanks Andrew Mercer
> 
> 
> if it loads in the browser then it's using acrobat anyway, i know 
> clients make a big deal about stupid things like that, but i think it's 
> a setting they have to change on their local machine. the only other way 
> to do so would be to load it with acrobat directly.

The software we are currently using to create our pdf(index) files has 
certain limitations which is why we were hoping to move to report-lab. 
Especially as report-lab seems cleaner to configure and appears faster 
when run.

However the old software did create links in the pdf file that 
automatically loaded each url in acrobat (ie NOT in the Browser) without 
the need to alter any settings in acrobat.

When looking at the pdf via a text editor the out put between the two 
differs quite considerably.

Out put for each link in the pdf (created by report-lab):

<< /A << /S /URI
   /Type /Action
   /URI (2002/01-2002-2.pdf) >>
  /Border [ 0
   0
   0 ]
  /Rect [ 73.6378
   711.6898
   126.6378
   723.6898 ]
  /Subtype /Link
  /Type /Annot >>

Out put for each link in the pdf (created by other software):

<< /Type /Annot
/Subtype /Link
/Rect [ 56.692 738.757 89.713 729.757 ]
/C [ 0 0 0 ]
/Border [ 0 0 0 ]
/A 13 0 R
/H /I
 >>
endobj
12 0 obj
<<
/Type /FileSpec
/F (2002/01-2002.pdf)
 >>
endobj
13 0 obj
<<
/S /GoToR
/F 12 0 R
/D [ 0 /XYZ null null null ]
 >>

Does any body have any suggestions especially as we have several 
customers who want the links to automatiacally load into acrobat.

> _______________________________________________
> reportlab-users mailing list
> reportlab-users at reportlab.com
> http://two.pairlist.net/mailman/listinfo/reportlab-users


Thanks Andrew
-- 


Andrew Mercer, Sundayta Ltd. http://www.sundayta.com
iDocSys for Document Management.


More information about the reportlab-users mailing list