Rick Roen wrote:
I updated reader to 8.1.0 to 8.1.2.

OK, you have made a change on your system.
This change has no relation whatsoever with iTextSharp;
nor with the PDFs you are creating.
You are talking about READER; a viewer that is not involved
in any PDF creation process.

Some people receiving the pdf document
created using iTextSharp could then not read the pdf with a "corrupt file
cannot repair" message.

It can very well be that you served them a corrupt file
that cannot be repaired, but please understand that the
upgrade of Adobe Reader has absolutely nothing to do with that.

There is nothing I know of that changed in my program and if iTextSharp does
not use anything from Adobe, I am baffled.

Trust me, I have been working in the IT business long enough
not to believe people who claim 'not to have changed anything' ;-)

Part of the problem is the
extreme difficulty in getting any information from people who cannot read
the pdf.  It's like pulling teeth just to get the version of reader! Asking
them to update seems a virtual impossibility.

If you can't reproduce the problem, then it's not your problem;
it's theirs. The most probable cause is that something has changed
on their side. (Or did your hosting provider changes server settings?)

Is there anything web oriented verifier of pdf files that can check various
versions of reader?

I've made you a simple version checker. See attachment.
Open the PDF and an alert will give you some info
(that is: if the Viewer isn't too old to support app.viewerType
and app.viewerVersion).
--
This answer is provided by 1T3XT BVBA

Attachment: version_checker.pdf
Description: Adobe PDF document

import java.io.FileOutputStream;
import java.io.IOException;

import com.lowagie.text.Document;
import com.lowagie.text.DocumentException;
import com.lowagie.text.Paragraph;
import com.lowagie.text.Phrase;
import com.lowagie.text.pdf.PdfWriter;


public class VersionChecker {
        public static final void main(String[] args) {
                Document document = new Document();
                try {
                        PdfWriter writer = PdfWriter.getInstance(document, new 
FileOutputStream("version_checker.pdf"));
                        document.open();
                        writer.addJavaScript(
                                        "app.alert('Viewer: ' + app.viewerType 
+ '; Version: ' + app.viewerVersion);");
                        String myPhrase = "If JavaScript is allowed, an alert 
will show you the version of your viewer";
                        Paragraph p = new Paragraph (new Phrase(myPhrase));
                        document.add(p);
                } catch (IOException e) {
                        e.printStackTrace();
                } catch (DocumentException e) {
                        e.printStackTrace();
                }
                document.close();
        }
}
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to