Re: Differences in Windows versus Linux?
"spinningwebz2002" <spinningwebz2002-/[email protected]>
| Newsgroups | gmane.comp.lang.perl.modules.pdfapi2 |
|---|---|
| Message-ID | <[email protected]> |
--- In [email protected], "Mr. Shawn H. Corey" <shawnhcorey@...> wrote: > > spinningwebz2002 wrote: > > I have a small program that I wrote to just test soem of the features > > in pdf::api2 that, on windows XP with ActiveState perl and it creates > > a little pdf that uses the paragraph methods I mentioned in a > > different post to test adding new pages on the fly. > > > > Now I just finished setting up a ubuntu server (linux variant) and > > installed all the apache/mysql/php and perl 5.8.x on it. I tested the > > same program and got an error I was missing Compress:Zlib - so > > installed it and ran the same program with no errors, did exactly as > > it does on the windows system (meaning it ran with no problem) and > > created a pdf, but the pdf ends up being smaller and is not a valid > > file. Here is the code I am using, is there any reason why it would > > work in windows but not in linux? > > Do you have the same version in each machine? > > #!/usr/bin/perl > > use strict; > use warnings; > > use PDF::API2; > > printf "PDF::API2 %s\nPDF::API2::Content %s\n", $PDF::API2::VERSION, > $PDF::API2::Content::VERSION; > > > -- > Just my 0.00000002 million dollars worth, > Shawn > > "For the things we have to learn before we can do them, we learn by > doing them." > Aristotle > I havent checked the versions yet, but they should be exactly the same since I copied the pdf::api2 from the windows machine directly to the linux one. I wonder, could it be I have a bad copy of the Compress lib? ActiveState perl for windows came with it as part of the install, but I had to use one I found on cpan (i believe) for the linux machine. Is there a specific version that is needed? Also it was mentioned in another post that loading the fonts causes a delay in the program exectuion. Is pdf:api2 loading all the fonts or only ones I use? If the former, can I remove fonts from the listing? Bill H