Supportnet Computer
Planet of Tech

Supportnet / Forum / Linux

Hilfe beim Linuxbefehl PS2PDF





Frage

Hallo Linuxgemeinde, ich nutze viel den Befehl PS2PDF in einem Script. Gibt es nun eine Möglichkeit das man den Verfasser und das Thema mitübergeben kann? Gru Niederbayer

Antwort 1 von chemnuser

habe folgendes im Netz gefunden:

Zitat:
If you use ps2pdf to convert PostScript files to pdf, you will have noticed that the "General Info" fields in the resulting pdf file are usually blank. This can be avoided by adding a simple "preamble" to the PostScript file before you pass it to ps2pdf:

% Document information
[ /Author (Who am I)
/Title (This is my title)
/Subject (This is a description of the Subject)
/Creator (What Software)
/CreationDate (Spring 1994)
/ModDate (Converted to PDF in 2002-08)
/Keywords (key, words, go, here)
/DOCINFO pdfmark
%% here comes the unchanged PS file
%!PS-Adobe-3.0
...

The resulting PostScript file can still be converted without problems. However, if you really want to ensure that this PostScript file can also be printed on devices that are not aware of the pdfmark operator - such as printers -, you can "undefine" the pdfmark operator in the prologue of the PostScript file:

/pdfmark where {pop} {userdict /pdfmark /cleartomark load put} ifelse

In this case, the DOCINFO code above should of course be included in the body of the PostScript code, not at the beginning.

Source: pdfmark Reference Manual (Adobe Technical Note #5150).[/quote]

Ich möchte kostenlos eine Frage an die Mitglieder stellen:


Ähnliche Themen:


Suche in allen vorhandenen Beiträgen: