Article View: adobe.postscript.programming
Article #700Distilling Issues - Individual versus Concatenated
From: Tim_Radle
Date: Fri, 05 Mar 2004 14:19
Date: Fri, 05 Mar 2004 14:19
39 lines
2229 bytes
2229 bytes
I add XMP metadata to PostScript files that are generated out of our warehouse for the purpose of automated processing on the part of one of our vendors.
At the individual file level, the files distill without error. However, we actually concatenate the files, and the concatenated file fails after processing maybe a page or two. I've pasted a sample of the code that I embed - if you have any idea why the concatenated file is misbehaving, I'd really appreciate a suggestion or two.
Thanks,
Tim
/ncbdict 1 dict def
ncbdict begin
/currentdistillerparams where
{pop currentdistillerparams /CoreDistVersion get 5000 lt} {true} ifelse
{ncbdict /pdfmark /cleartomark load put
ncbdict /metafile_pdfmark {flushfile cleartomark} bind put}
{ncbdict /metafile_pdfmark {/PUT pdfmark} bind put} ifelse
%Define the stream object and associate it as metadata
[/_objdef {ncb_metadata_stream} /type /stream /OBJ pdfmark
[{ncb_metadata_stream} 2 dict begin
/Type /Metadata def /Subtype /XML def currentdict end /PUT pdfmark
%Fill the stream with the XMP Packet...
[{ncb_metadata_stream}
currentfile 0 (% &&end XMP packet marker&&)
/SubFileDecode filter metafile_pdfmark
<?xpacket begin='?' id='W5M0MpCehiHzreSzNTczkc9d'?>
<x:xmpmeta xmlns:x='adobe:ns:meta/'>
<rdf:RDF xmlns:iX='http://ns.adobe.com/iX/1.0/'>
<rdf:Description rdf:about='' xmlns:ncb='//ohclesql1026/ncb/metadata/' (Well-Formed XML goes here)/>
</rdf:RDF>
</x:xmpmeta>
<?xpacket end='w'?>
% &&end XMP packet marker&&
%Attach the stream as the main XMP metadata stream
[{Catalog} {ncb_metadata_stream} /Metadata pdfmark
Technical Details
Message-ID:
<2cd0737b.-1@webx.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!webxShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10c61a,4cea95e71d7773d5,start X-Google-Attributes: gid10c61a,public X-Google-ArrivalTime: 2004-03-05 06:37:48 PST From: Tim_Radle@adobeforums.com Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!webx Newsgroups: adobe.postscript.programming Subject: Distilling Issues - Individual versus Concatenated Message-ID: <2cd0737b.-1@webx.la2eafNXanI> Date: Fri, 5 Mar 2004 06:19:24 -0800 Lines: 46 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit