strange behavior of iText across platforms



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.

.



Relevant Pages

  • Different result sets on live and staging environment
    ... return of a different result set on our staging ... environment. ... articles displayed in the ... de vliegbasis Volkel vormt het 25-jarig jubileum van de F- ...
    (microsoft.public.inetserver.indexserver)
  • Re: Msxml2.XMLHTTP.3.0
    ... i have the same problem and it was problem with the end server certificate. ... But when i run my project on Staging environment i am getting ... >> used HTTPS protocol. ...
    (microsoft.public.dotnet.xml)
  • Visual SourceSafe set-up dev to stage
    ... I'm looking to set-up VSS to version our development and staging web sites, ... development environment, staging environment, and production environment? ...
    (microsoft.public.vstudio.sourcesafe)
  • Re: Replicating a Portal Instance in another Environment
    ... another completely seperate environment and I was wondering what would ... environment, and I want to replicate this environment on Virtual ... Staging and Dev environments will be on seperate machines, ...
    (microsoft.public.sharepoint.portalserver)