Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / February 2006

Tip: Looking for answers? Try searching our database.

[iText] compression

Thread view: 
Ingo R. Homann - 28 Feb 2006 10:43 GMT
Hi,

I am generating 2 documents with iText. I want to test, if the documents
are identical. (Background: I'm doing a refactoring and want to test if
the functionality remains the same.)

The documents look identical, but "diff" says that they are not.
Unfortunately, it doesn't tell me *what* differences are there, because
the files are binary.

My first idea was that there is a timestamp in the PDF that is not
displayed but of course is a difference.

I tried to filter the PDFs using "hexdump -C", but when comparing the
results with diff, it is obvious that there are *many* differences (or
perhaps it is only a small "offset-difference" that diff does not
realize correctly).

Anyhow, that kind of comparison does not work.

So, my question is: (How) can i tell iText to save a document
"uncompressed", so that the differeneces are more obvious and readable?

Or is there a completely different approch to my problem rather than
extract the ASCII out of the PDF at the end?

Ciao,
Ingo
Rhino - 28 Feb 2006 16:14 GMT
> Hi,
>
[quoted text clipped - 21 lines]
> Or is there a completely different approch to my problem rather than
> extract the ASCII out of the PDF at the end?

You might get better answers if you tried posting this question on the iText
forum (at the iText website). You may even find that this has been answered
already in the archive of that forum. The developers of iText are very
active in helping users solve problems with iText.

Here on comp.lang.java.programmer, you will find that most people have never
used iText and even some of us who have used it, have never tried to do file
comparisons between different versions of documents.

--
Rhino


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.