🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: adobe.psprinter.windows
10 messages
10 total messages Started by Howard Rubin Mon, 23 Dec 2002 21:48
Text Comment in PS and PDF
#1047
Author: Howard Rubin
Date: Mon, 23 Dec 2002 21:48
3 lines
932 bytes
How can I insert a text comment field into a PS file and have Distiller preserve it in the resulting PDF?

I don't see how to do that using any of the escape functions in GDI's ExtEscape.
Re: Text Comment in PS and PDF
#1048
Author: Aandi Inston
Date: Mon, 23 Dec 2002 23:26
5 lines
978 bytes
You can use PDFMark instructions in the PostScript.  Though I'm not
entirely sure that we mean the same thing by a "comment".  You can't
generate comment (%) lines. 

Aandi Inston
Re: Text Comment in PS and PDF
#1050
Author: Howard Rubin
Date: Thu, 26 Dec 2002 22:07
5 lines
1075 bytes
Fair enough. I want to put hidden text into the PS that distiller will transfer to the PDF.

This hidden text should only be visible when viewing the PDF binary data.

And I'm using GDI to create the PS, so I'll need to know how GDI can create the relevant PDFMark instructions.
Re: Text Comment in PS and PDF
#1051
Author: Aandi Inston
Date: Fri, 27 Dec 2002 10:39
9 lines
1304 bytes
So you don't want the text to be part of the PDF page, or to appear
when you copy/paste.... just somewhere in the PDF.  Where in the PDF,
and what tool would you use to extract the comments?  There are
already a number of places in a PDF to store textual metadata.

To get the pdfmark instructions into the PostScript you would use the
PASSTHRU escape or similar.

Aandi Inston
Re: Text Comment in PS and PDF
#1052
Author: Howard Rubin
Date: Mon, 30 Dec 2002 20:28
4 lines
1310 bytes
That's right, I don't want the text to be part of the PDF. Ideally I'd like to use acrobat reader to look at the comments. And one of the standard places seems like a good idea. Perhaps a note annotation, although note annotations seem to be limited to about 4k of text. By PASSTHRU, I assume you mean:
ExtEscape( , POSTSCRIPT_PASSTHROUGH,...)

In GDI, how can I add data to a PS that distiller will convert to one of these text metadata fields, preferably unlimited in size?
Re: Text Comment in PS and PDF
#1053
Author: Aandi Inston
Date: Mon, 30 Dec 2002 21:07
4 lines
963 bytes
That escape sounds correct.  The PostScript you add will be a pdfmark
instruction. See the pdfmark reference.

Aandi Inston
Re: Text Comment in PS and PDF
#1066
Author: Howard Rubin
Date: Fri, 03 Jan 2003 15:21
3 lines
1022 bytes
The pdfmark reference <http://partners.adobe.com/asn/developer/acrosdk/docs/PDF_Creation_APIs/pdfmarkReference.pdf> says in section 2.1.1 that the max length of a text annotation is 65,535 characters. I need more than this.

How can I get more room for my comment text?
Re: Text Comment in PS and PDF
#1129
Author: Aandi Inston
Date: Wed, 08 Jan 2003 10:19
4 lines
983 bytes
I would think that is a limit in Acrobat too, so there would be no way
to make a longer single annotation of the text type. 

Aandi Inston
Re: Text Comment in PS and PDF
#1130
Author: Howard Rubin
Date: Wed, 08 Jan 2003 16:23
1 lines
904 bytes
Is there another kind of normally hidden text that can be embedded in a PDF that doesn't have the 64K limitation?
Re: Text Comment in PS and PDF
#1132
Author: Aandi Inston
Date: Wed, 08 Jan 2003 17:10
6 lines
1155 bytes
Anything that comes from a string will have a 64K limitation, but you
can store multiple strings. Streams don't have a length limit. But you
said you wanted to be able to use Reader... that implies using one of
the standard types understood by Reader.

Aandi Inston
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads