Hi
    I use your itext product to generate pdf document , and found some problem about versions of acrobat or ie
    I would like to tell you about some ploblem

   I write a Servlet page (I copy some of your example code to test it) to generate pdf from web application, each time that user open url (eg. http://localhost/example/TestPDF) i will count number of click my web to database
    problem :
  Many of my user when open my url ,while my dababase counting one by one per a user click servlet (it OK). but  two of many users open my  url , while my database counting  will write 2 times to database per one user click ???

I track the problem by use your example code and little edit it that shown below

public void doGet (HttpServletRequest request, HttpServletResponse response)    throws IOException, ServletException {
        String type = request.getParameter("type");
        if (type != null){
        }else{
            type = "pdf";
        }
        // step 1
        Document document = new Document();
        try {
            if ("html".equals(type)) {
                response.setContentType("text/html");
                System.out.println("text/html");
                HtmlWriter.getInstance(document, response.getOutputStream());
            }
            else if ("pdf".equals(type)) {
                response.setContentType("application/pdf");
                System.out.println("application/pdf");
                PdfWriter.getInstance(document, response.getOutputStream());
            }
            document.open();
            document.add(new Paragraph("Hello World"));
            document.add(new Paragraph(new Date().toString()));
        }
        catch(DocumentException de) {
            de.printStackTrace();
            System.err.println("document: " + de.getMessage());
        }
        // step 5: we close the document (the outputstream is also closed internally)
        document.close();
    }


I moniter the http server and system logs file and told the user use my test url with html parameter

result :
http server log :
10.0.0.7 - - [10/Apr/2006:14:00:03 +0700] "GET /test/TestPDF?type=html HTTP/1.1" 200 306
server log :
[4/10/06 14:00:03:018 ICT] 3673c0b9 SystemOut     O text/html

So I told the user to user my test url with pdf parameter

resule
http server log :
10.0.64.87 - - [10/Apr/2006:14:00:21 +0700] "GET /scbeip/TestPDF?type=pdf HTTP/1.1" 200 993
10.0.64.87 - - [10/Apr/2006:14:00:21 +0700] "GET /scbeip/TestPDF?type=pdf HTTP/1.1" 200 993

server log :
[4/10/06 14:00:30:078 ICT] 3673c0b9 SystemOut     O application/pdf
[4/10/06 14:00:30:084 ICT] 3673c0b9 SystemOut     O application/pdf


so I asked my user about acrobat user then he told me 5.0.5 october
but my boss use the same 5.0.5 september it work (i'm not sure about release date) and I'm wonder about these.

and when my user upgrade acrobat to 7.0 it work

my question about this event
Acrobat version between 5.0.0 - 5.0.5 or IE  have a some problem ?
Have any setting to config it?
Upgrade version acrobat is the best way to solve it?


thank you,

Best regards









Love cheap thrills? Enjoy PC-to-Phone calls to 30+ countries for just 2ยข/min with Yahoo! Messenger with Voice.

Reply via email to