Planet PDF Forum Archive

Planet PDF  ForumThe page you are viewing is part of our 160,000 page discussion forum archive. See below for PDF-related discussions spanning 1999-2008. To ask questions and get help, head to the live Planet PDF Forum.


How to search this archive. The quickest way is to use the filters on our Advanced Search page so that only archive pages are included in the results.


Previous | Next | (P-PDF) Engineering


Topic: Watermark/merge one PDF with another without loosing hyperlinks
Conf: (P-PDF) Engineering, Msg: 159842
From: blowagie
Date: 4/30/2007 09:43 PM

Let me first tell you something about the way a page is defined in PDF.

There's PDF content: basically the stuff without the hyperlinks.
There's PDF annotations: basically all interactive features; hyperlinks, form fields,...

Most simple tools don't care about the annotations; you've experienced that they get lost as soon as you process the existing PDF.

PdfTk is a wrapper around iText; therefore it's a more specialized tool. However: what you are trying to do fails, because the PdfTk stamping process uses PdfStamper and PdfImported page.
PdfStamper preserves all the interactive stuff in PDF 1, but the PdfImportedPage from PDF 2 that is used as an overlay (the stamp) is 'flat'. It's just the content, without the annotations.

What you need is a tool that not only merges the page content, but also the annotations. I don't know of such a tool that allows you to do this without programming, but I'm sure you can use PdfStamper and PdfImportedPage in iText to do what you did before; and then use iText to fetch the annotation info from PDF 2 and add newly created annotations based on this info to PDF 1 (with PdfStamper.addAnnotation).

br,
Bruno


PDF In-Depth Free Product Trials Ubiquitous PDF

Pitstop Pro

Now graphic arts professionals have even broader and more expert control over their PDF documents. With...

Download free demo

ARTS PDF Aerialist

The ultimate plug-in for Adobe Acrobat and #1 selling product at PDF Store. Advanced splitting, merging,...

Download free demo

Ubiquitous PDF: 2009 IRS income tax forms available for download

With less than a month to go until Americans will be scrambling to file their 2009 tax paperwork. Luckily, printable PDF versions of forms such as the 1040 can be downloaded for free from the IRS website.

March 18, 2010
Search Planet PDF
more searching options...







Download PDF Creator

PDF Resources
Platinum Sponsor
Create & Edit PDF - Nitro PDF Software

ARTS PDF

Silver Sponsors

PDF-Tools QuickPDF: The Unrivaled PDF Developer Toolkit

Get Nitro PDF Professional
Featured Product

NITRO PDF Professional

Built from the ground up, the perfect desktop PDF product for business and enterprise. Nitro PDF Professional has an uncompromising feature set so you can create, combine, edit, collaborate on and...

Featured Event

No upcoming events

PDF Store Categories