I had a similar problem. Here's the high level code of
how I got around it... we're serving the pdfs out
through a bog standard servlet.
ServletOutputStream out = resp.getOutputStream();
ByteArrayOutputStream baos = new
ByteArrayOutputStream();
PdfReader inputPDF = new PdfReader(docBytes);
PdfStamper stamp = new PdfStamper(inputPDF, baos);
PdfWriter writer = stamp.getWriter();
writer.setViewerPreferences(PdfWriter.HideMenubar |
PdfWriter.PageModeUseNone|PdfWriter.CenterWindow
|PdfWriter.NonFullScreenPageModeUseNone);
String nextIdList = calculateNextIdList(ids);
getButtonCreator().createEditButtons(inputPDF, writer,
stamp, nextIdList, String.valueOf(ids[0]));
getDocumentHelper().populatePreviouslySavedValues(ids[0],
stamp, true);
stamp.close();
resp.setContentLength(baos.size());
resp.setContentType("application/pdf");
out.write(baos.toByteArray());
resp.flushBuffer();
out.flush();
out.close();
Hope this helps.... my
getButtonCreator().createEditButtons does the actual
drawing of the buttons.
____________________________________________________
Yahoo! Sports
Rekindle the Rivalries. Sign up for Fantasy Football
http://football.fantasysports.yahoo.com
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions