• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

[ gelöst ] PDFTK Frage

A

Anonymous

Gast
Hallo,

ich arbeite viel mit dem Programm PDFTK. Es funktioniert toll.
Jetzt habe ich aber ein Problem.
Einem PDF-Dokument , dass aus Bildern ( nicht aus Text ) besteht, soll ein Wasserzeichen hinzugefügt werden.



Code:
pdftk pdf_dokument.pdf background wasserzeichen.pdf output pdf_mit_wasserzeichen.pdf


Wenn ich die neue PDF-Datei " pdf_mit_wasserzeichen.pdf " öffne, sehe ich das Wasserzeichen nicht.
Wenn ich aus dieser PDF-Datei alle Bilder heraus extrahiere, sehe ich, dass die Datei aber das Wasserzeichen enthällt.
Es ist aber nicht sichtbar. Ich habe mittlerweile herausgefunden, das das Wasserzeichen "hinter" die Bilder in der
Datei "pdf_dokument.pdf " gestellt werden und somit unsichtbar ist.

Wie bekomme ich es hin, dass die PDF-Datei "wasserzeichn.pdf" vor das Bild in der Datei
"pdf_dokument.pdf" gestellt wird und somit sichtbar ist?

Manuell kann man das in z.B. OpenOffice mit dem Befehl "Anordnung -- ganz nach hinten stellen" erreichen.
 

tomm.fa

Administrator
Teammitglied
man pdftk schrieb:
background <background PDF filename | - | PROMPT>
Applies a PDF watermark to the background of a single input PDF. Pass the background PDF's filename after background like so:

pdftk in.pdf background back.pdf output out.pdf

Pdftk uses only the first page from the background PDF and applies it to every page of the input PDF. This page is scaled and rotated as needed to fit the input page. You can use - to pass a background PDF into pdftk via stdin.

If the input PDF does not have a transparent background (such as a PDF created from page scans) then the resulting background won't be visible -- use the stamp feature instead.

stamp <stamp PDF filename | - | PROMPT>
This behaves just like the background feature except it overlays the stamp PDF page on top of the input PDF document's pages. This works best if the stamp PDF page has a transparent background.
 
Oben