Thanks Leonard.

My understanding was that the intent was for the RIP engine to support the
metadata as outlined in ISO 16612-2, but we don't have a time table for that
yet. In the interim, we were hoping to key on the name in order to allow us
to slim down the monstrous PS conversions.

If the /Name addition is feasible, I'd like to do it as a short term
band-aid, but the long term solution will be ISO 16612-2.

-----Original Message-----
From: Leonard Rosenthol [mailto:lrose...@adobe.com] 
Sent: Wednesday, December 16, 2009 4:02 PM
To: 'gylfi.ingva...@solimarsystems.com';
itext-questions@lists.sourceforge.net
Subject: Re: [iText-questions] Adding a /Name to an XObject Form containing
an imported page


You should take a look at the PDF/VT (ISO 16612-2) standard as it has
provisions for this and related "RIP optimizations".  Better to do it the
way everyone is than making up your own.

Leonard

-----Original Message-----
From: Gylfi Ingvason [mailto:gylfi.ingva...@solimarsystems.com]
Sent: Wednesday, December 16, 2009 3:40 PM
To: itext-questions@lists.sourceforge.net
Subject: [iText-questions] Adding a /Name to an XObject Form containing an
imported page

Gents,

I use PdfWriter to import pages as such:

PdfImportedPage page = writer.GetImportedPage(reader, pageNumber);
writer.DirectContent.AddTemplate(page, ... );

This wraps the page in an XObject Form that is then referenced by the Page
being generated in the output.

What I would like to do is to add a /Name entry to the XObject Form
dictionary to indicate to a PostScript conversion engine that the Form
should cached as opposed to being replicated each time it's being referenced
by a page. I was hoping to do something like:

PdfStream stream = page.GetFormXObject(-1); stream.Put(new PdfName("Name"),
new PdfName("CacheThisForm"));

but the protection level does not allow that, and even if it did, I would
get a private copy with the Name added but no changes in the actual output.
It's easy adding dictionary entries on the PdfReader side and have them
being preserved, but it escapes me how to do this on a template being added.

Any ideas on how this can be accomplished?

Thanks - Gylfi



----------------------------------------------------------------------------
--
This SF.Net email is sponsored by the Verizon Developer Community Take
advantage of Verizon's best-in-class app development support A streamlined,
14 day to market process makes app distribution fast and easy Join now and
get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions:
http://www.1t3xt.info/examples/ You can also search the keywords list:
http://1t3xt.info/tutorials/keywords/

----------------------------------------------------------------------------
--
This SF.Net email is sponsored by the Verizon Developer Community Take
advantage of Verizon's best-in-class app development support A streamlined,
14 day to market process makes app distribution fast and easy Join now and
get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions:
http://www.1t3xt.info/examples/ You can also search the keywords list:
http://1t3xt.info/tutorials/keywords/



------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Reply via email to