Hello!!
First of all: thanks for your help and sorry about bothering you with my
newbie-questions..
I played around a little.. this is the result: (in a jsp)
<%@ page import="java.io.*" %>
<%@ page import="java.util.*" %>
<%@ page import="com.lowagie.text.*" %>
<%@ page import="com.lowagie.text.pdf.PdfWriter" %>
<%
Document document = new Document();
ByteArrayOutputStream buffer = new ByteArrayOutputStream();
PdfWriter.getInstance( document, buffer );
document.open();
document.add(new Paragraph("Hello World"));
document.close();
String outpdf = buffer.toString();
response.setContentType( "application/pdf" );
response.setContentLength(outpdf.length());
out.write(outpdf);
%>
With IE I see the PDF-code in the browser window, and with NS the pdf opens,
but it's empty...
Can you give me any help?
regards
Michael
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions