RE: [iText-questions] FW: Adding a new pdf page

2006-03-30 Thread Dilan
e bit work fine, now I want to do is, insert a another page to this above pdf file that I open and send the combined PDF into the bitestream, how can I do that? Can you able to provide me an example to add this second page? Or where in above page that I have to added into. Regards, Dilan

[iText-questions] FW: Adding a new pdf page

2006-03-29 Thread Dilan
} catch (IOException e) { logger.error("Error reading bytes", e); } return bytes; I have try the PdfCopy, I'm not sure where did I went wrong, But its gives an corrupted pdf, it works fine without the new code section, All the above debu

[iText-questions] RE: Adding a new pdf page

2006-03-28 Thread Dilan
For example, if I open two input streams, for each document, input1 and input2 as two document, how can I combine them as two pages, and send to output stream? Please help :) Dilan --- This SF.Net email is sponsored by xPML, a groundbreaking scri

[iText-questions] re : PdfStamper

2005-10-11 Thread Dilan
Hello, .. How can I get PdfStamper to work without a OutputStream? If I do this, not work (empty file) BufferedOutputStream baos = new BufferedOutputStream(new ByteArrayOutputStream()); PdfStamper stamper = new PdfStamper(reader, baos); AcroFields aform = stamper.getAcroFields(); Or int

RE: [iText-questions] re: input stream

2005-10-11 Thread Dilan
/ not working, Can you able to give me any tips to fix it, I want it to be work as above, where, setting the response.getOutputStream(); only within action map, without passing to the method. Regards, Dilan --- This SF.Net email is spon

[iText-questions] re: input stream

2005-10-10 Thread Dilan
Hello, I have this simple java code, public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) { Try { OutputStream out = response.getOutputStream(); String CONTENT_TYPE = "applica

[iText-questions] RE: generating pdf through the Velocity

2005-09-21 Thread Dilan
Hello, Im wondering, if anyone have done any program to output pdf from the http://jakarta.apache.org/velocity/ if there is, can you able to help me through how it works or some example codes regards this, thanks dilan --- SF.Net email

[iText-questions] Re : reading a pdf from the db and change it.

2005-07-29 Thread Dilan
Hello, I’m trying to edit a pdf which is saved in the database, first read it into a inputstream, then to the pdf reader, I cant get it to read the inputstream into the pdfreader InputStream input = new ByteArrayInputStream(af.getImg()); Document document = new Document(); try { //im g

[iText-questions] help editing pdf via java

2005-07-29 Thread Dilan
onse.getOutputStream().flush();   Regards,     Dilan