Article View: adobe.postscript.programming
Article #693Re: Embedding Metadata - Need Some Help.
From: Tim_Radle
Date: Wed, 25 Feb 2004 21:49
Date: Wed, 25 Feb 2004 21:49
50 lines
2826 bytes
2826 bytes
Thanks Dov.
Now, to whoever wants to address this...
I post the following code into my .PS files, and when distilled, the resultant PDF is 115% the size of the original document. And the size of the PDF is almost exactly half that of the .PS file. Does that make any sense?
Can you tell what I messed up?
Note the position of the code relative to %%EndSetup...
/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='(U+FEFF)' 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/' ncb:CompTime='COMP_TIME|' ncb:PkgSeq='PKG_SEQUENCE|0000005' ncb:StmtSeq='STMT_SEQUENCE|0000005' ncb:Mail1='MAIL_TO1|THE GOODYEAR TIRE & RUBBER CO' ncb:Mail2='MAIL_TO2|ATTN: BLANCHE ENNALS' ncb:Mail3='MAIL_TO3|GLOBAL BENEFIT FINANCING, DEPT 626' ncb:Mail4='MAIL_TO4|1144 EAST MARKET STREET' ncb:Mail5='MAIL_TO5|AKRON OH 44316-0001' ncb:Mail6='MAIL_TO6|' ncb:ZipCode='ZIP_CODE|' ncb:InsMap='INSERT_MAP|YYYYYYYY' ncb:InsId='INSERT_ID|0010001770 0010001770 0010001770 0010001770 0010001770 0010001770 0010001770 001' ncb:AcctId='ACCOUNT_ID|CN000082' ncb:PaperCde='PAPER_CODE|10001453' ncb:EnvCde='ENV_CODE|10001538' ncb:SpecHand='SPECIAL_HANDLING|N'/>
</rdf:RDF>
</x:xmpmeta>
WHITESPACE.....
<?xpacket end='w'?>
% &&end XMP packet marker&&
%Attach the stream as the main XMP metadata stream
[{Catalog} {ncb_metadata_stream} /Metadata pdfmark
%%EndSetup
Thanks,
Tim
Technical Details
Message-ID:
<2cd022ab.14@webx.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!webxReferences:
<2cd022ab.-1@webx.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10c61a,4276c71709ca5aae X-Google-Attributes: gid10c61a,public X-Google-ArrivalTime: 2004-02-25 14:08:09 PST From: Tim_Radle@adobeforums.com Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!webx Newsgroups: adobe.postscript.programming Subject: Re: Embedding Metadata - Need Some Help. Message-ID: <2cd022ab.14@webx.la2eafNXanI> Date: Wed, 25 Feb 2004 13:49:03 -0800 References: <2cd022ab.-1@webx.la2eafNXanI> Lines: 62 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit