swftools-common
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Swftools-common] pdf2swf link detection


From: German Geek
Subject: Re: [Swftools-common] pdf2swf link detection
Date: Sun, 18 Apr 2010 19:27:53 +1200

Hi All,

Just looked myself and found that it seems like one can detect links in a PDF and even their position relative to the top left corner of the PDF.

Here is the output of "pdf2swf -vvvv -p 1 pdf.pdf -o 1.swf":

DEBUG   drawlink
TRACE   drawlink 95.00/442.00 255.00/442.00 255.00/432.00 95.00/432.00
DEBUG   |     moveTo 95.00 442.00
DEBUG   |     lineTo 255.00 442.00
DEBUG   |     lineTo 255.00 432.00
DEBUG   |     lineTo 95.00 432.00
DEBUG   |     lineTo 95.00 442.00
TRACE   drawlink action="">TRACE   drawlink s= http://www.adobe.com/suportservice/devrelations/PDFS/TN5150.
PDFMARK.PDF
NOTICE  File contains links
TRACE   drawgfxline, 4 lines, 0 splines
TRACE   drawgfxline, 4 lines, 0 splines
TRACE   Placing link ID 170
VERBOSE "URI" link to " http://www.adobe.com/suportservice/devrelations/PDFS/TN5
150.PDFMARK.PDF" (-1)
DEBUG   drawlink
TRACE   drawlink 95.00/453.00 255.00/453.00 255.00/443.00 95.00/443.00
DEBUG   |     moveTo 95.00 453.00
DEBUG   |     lineTo 255.00 453.00
DEBUG   |     lineTo 255.00 443.00
DEBUG   |     lineTo 95.00 443.00
DEBUG   |     lineTo 95.00 453.00
TRACE   drawlink action="">TRACE   drawlink s= http://www.adobe.com/suportservice/devrelations/PDFS/TN5150.
PDFMARK.PDF

I guess that
TRACE drawlink 95.00/453.00 255/453.00 255.00/443.00 95.00/443.00
...
TACE drawlink s= http://www.adobe.com/suportservice/revrelations/PDFS/TN5150.PDFMARK.PDF
gives me the exact rectangle of the link. This is great! I just need to parse it and we can use it.

Please correct if I'm wrong. Thanks.

Cheers,
Tim
++Tim Hinnerk Heuer++

http://www.ihostnz.com


On 18 April 2010 18:25, German Geek <geek.de@gmail.com> wrote:
Yes, I have. Was just wondering if it could be automated to get links from the pdf outside of the swf so we can parse them later on and let users edit them.

++Tim Hinnerk Heuer++

http://www.ihostnz.com


On 18 April 2010 04:37, Mark Lee <address@hidden> wrote:
Have you read the documentation? There are a host of options for hyperlinks using pdf2swf.exe command line.
 

Mark



From: German Geek <geek.de@gmail.com>
To: SWF Tools <address@hidden>
Sent: Sat, April 17, 2010 3:05:14 AM
Subject: [Swftools-common] pdf2swf link detection

Hi All,

I was just wondering if there is a way to detect hyperlinks in a PDF with pdf2swf. Maybe with verbose output of some level? Have not tried this but will when i get a chance. It would be nice.

Regards,
Tim
++Tim Hinnerk Heuer++

http://www.ihostnz.com

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com



reply via email to

[Prev in Thread] Current Thread [Next in Thread]