Here's a partial of my code. Again, this code works fine on HTTP protocol, but not 
HTTPS.

   // create a set of fonts for using within this document
    Font fontNormal = new Font(Font.TIMES_ROMAN, 12, Font.NORMAL, Color.BLACK);
    Font fontBoldUnderline = new Font(Font.TIMES_ROMAN, 12,
                                      Font.BOLD | Font.UNDERLINE, Color.BLACK);
    Font fontUnderline = new Font(Font.TIMES_ROMAN, 12, Font.UNDERLINE,
                                  Color.BLACK);

    // creation of the document with a certain size (LETTER) and certain margins
    // page size, margin left, margin right, margin top, margin bottom
    Document document = new Document(PageSize.A4, 50, 50, 50, 20);
    document.compress = false;
    document.addSubject("Employee Pay Letter");

    ByteArrayOutputStream baos = new ByteArrayOutputStream();
    // creation of the writer
    PdfWriter.getInstance(document, baos);

    // create paragraphs
    Paragraph coreSectionPara = new Paragraph(leading,
                                              "This is a test",
                                              fontNormal);
     // we add a Footer that will show up on the first page
    HeaderFooter footer = new HeaderFooter(new Phrase("v.2"), false);
    footer.setBorder(Rectangle.NO_BORDER);
    document.setFooter(footer);

    document.open();

    document.add(coreSectionPara); // add the core section paragraph
    document.close();

    response.setContentType("application/pdf");
    response.setContentLength(baos.size());
    ServletOutputStream out = response.getOutputStream();
    baos.writeTo(out);
    baos.close();
    out.flush();

>  -----Original Message-----
> From:         Tuan H. Le  
> Sent: Wednesday, March 26, 2003 4:57 PM
> To:   '[EMAIL PROTECTED]'
> Subject:      Error generating/opening PDF file on HTTPS
> 
> Hi,
> 
> Our application runs fine on both non-secure (HTTP) and secure (HTTPS) sites for all 
> features but it has an error on the secure site (HTTPS) when it generates a PDF 
> file. For this same feature on a non-secure (HTTP), it works fine.
> 
> The error is:
> 
> Internet Explorer cannot download .... from ....
> Internet Explorer was not able to open this Internet site. The requested site is 
> either unavailable or cannot be found. Please try again later.
> 
> We are using iText-097 with Struts 1.1.
> 
> Please advise on how to fix this issue.
> 
> Thanks,
> Tuan


-------------------------------------------------------
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to