Such a document would be perfectly valid PDF.

For example, if I have a document that says that I owe you $200 but you use a 
standard PDF editing tool (Acrobat, FoxIt, etc.) to change it to $2000 and do a 
File->Save.   That will create a new content stream with the new data and 
potentially a bunch of other related objects, all pointed to by a new xref – 
called an incremental update. So now you have both in the file.  And some tools 
would let you extract the original version.

If you wish to build a tool that processes PDF files in ways other than the 
standard, there is nothing stopping you – but iText (as it stands today) is not 
to the tool for you (nor are any other standard PDF library).  You will need to 
learn the details of PDF and either write your own or modify an existing one.

Leonard

From: adriano <asanton...@gmail.com<mailto:asanton...@gmail.com>>
Reply-To: Post here 
<itext-questions@lists.sourceforge.net<mailto:itext-questions@lists.sourceforge.net>>
Date: Thursday, March 21, 2013 7:48 PM
To: Post here 
<itext-questions@lists.sourceforge.net<mailto:itext-questions@lists.sourceforge.net>>
Subject: Re: [iText-questions] Duplicate indirect objects

Ok, then suppose the incoming PDF document includes a stream object containing 
text that would cause trouble to the recipient if it only was visible, but it 
is not because it is not referenced in any page that the document is officially 
comprised of, according to the "effective" document Catalog. This document 
might even contain an extra Catalog that would cause the invisible text to 
become visible, if it only was in effect, but is not because it is located in 
an area of the PDF file that is also ignored. Again, I would rise my eyebrow if 
I noticed something like that "by hand", and still more I would like to detect 
such a situation if I was processing a PDF document in an unattended way.

I perfectly understand that by processing the PDF document in a standard way 
that extra objects would just be ignored.
I just would like to detect such situations -- of course by processing the PDF 
in a non-standard way.

I also understand from your comments that you consider my arguments just 
nonsense, okay.
I just tried to ask....



On Wed, Mar 13, 2013 at 3:49 PM, Leonard Rosenthol-3 [via iText - General] 
<[hidden email]</user/SendEmail.jtp?type=node&node=4657874&i=0>> wrote:
On 3/13/13 3:12 PM, "adriano" <[hidden 
email]<http://user/SendEmail.jtp?type=node&node=4657816&i=0>> wrote:

>Now, mkl, suppose you have to "process" the incoming PDF document as a
>whole, without altering it in any way....

Yes and no.

The process by which one processes a PDF document, where one starts with
the trailer->root/Catalog->Š, would mean that any objects that are NOT
referenced in the current xref table OR that are not linked into the
object tree, will be ignored.


Leonard


------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar

_______________________________________________
iText-questions mailing list
[hidden email]<http://user/SendEmail.jtp?type=node&node=4657816&i=1>
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php


________________________________
If you reply to this email, your message will be added to the discussion below:
http://itext-general.2136553.n4.nabble.com/Duplicate-indirect-objects-tp4657759p4657816.html
To unsubscribe from Duplicate indirect objects, click here.
NAML<http://itext-general.2136553.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>


________________________________
View this message in context: Re: Duplicate indirect 
objects<http://itext-general.2136553.n4.nabble.com/Duplicate-indirect-objects-tp4657759p4657874.html>
Sent from the iText - General mailing list 
archive<http://itext-general.2136553.n4.nabble.com/> at Nabble.com.
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to