strange behavior of iText across platforms
- From: steveg144@xxxxxxxxx
- Date: Thu, 25 Oct 2007 20:04:07 -0000
I do my development on XP using IBM's RAD developer, with J2EE level
set to 1.3. I've built some code to print a PDF and display it on-
screen. This code works great (thanks to some assistance from Bruno
Lowagie and others). When I move it to our staging server, things
misbehave. Problems:
1. I used pdfSt.addViewerPreference(PdfName.HIDETOOLBAR, true) to
turn off some viewer elements. Worked great in my RAD environment;
over on our staging server, it blows up at runtime with "method not
found." OK, so I use pdfSt.setViewerPreferences() instead and turn off
all my elements at the same time. My staging environment seemingly
likes this.
2. Right before I closed my PdfStamper, I also closed my PdfReader,
like so: pdfR.close(); Again, when I deploy this to our staging
server, it blows up with method not found for pdfreader close(). So I
commented it out, and just let pdfstamper.close() execute. My staging
environment seemingly likes this.
3. So the output is attempted to toss to the browser screen (which, to
re-emphasize, works flawlessly on my local environment), and I get the
blowup "Do you want to save this file?" error popup, telling me the
file you are downloading cannot be opened, it is either corrupted or
not the correct filetype.
Sounds to me like maybe some version (JVM? other?) difference between
my local environment and my staging server that causes things to work
OK locally but not on staging? Is iText doing any sort of version
interrogation under the covers that causes him to recognize certain
methods as existing, etc, and that might also cause the output to not
work correctly? Thanks in advance for any ideas.
.
- Follow-Ups:
- Re: strange behavior of iText across platforms
- From: Bruno Lowagie
- Re: strange behavior of iText across platforms
- Prev by Date: How to activate Reader when full Acrobat 8 installed
- Next by Date: Re: wrong border in fullscreen pdfs in Adobe Reader 8 Win - bug in AR?
- Previous by thread: How to activate Reader when full Acrobat 8 installed
- Next by thread: Re: strange behavior of iText across platforms
- Index(es):
Relevant Pages
|