I've created a dynamic postscript document with PostScript::Simple and am able to successfully create a pdf using PostScript::Convert and/or by opening the ps document in Adobe.
However, when I attempt to import an EPS logo, I get the following errors when running my perl script:
Ghostscript failed: exit status 1 at /usr/local/share/perl/5.10.0/Post
+Script/Convert.pm line 302
+9beda00)') called at /usr/local/share/perl/5.10.0/PostScript/Convert.
+pm line 186
+') called at /usr/local/share/perl/5.10.0/PostScript/Convert.pm line
PostScript::Convert::psconvert('SCALAR(0x9dce118)', 'filename', 'fileB
+53331AF-6526-8804-3B37-68F2EFC8F14A.pdf', 'format', 'pdf') called at
+/var/www/perl/modules/Intranet/FirstFarm/Printing.pm line 159
...and when I try to open the ps file through Adobe, I get the following errors in the dialog box:
Acrobat Distiller 8.0
Started: Monday, February 21, 2011 at 16:33:43
Adobe PostScript software version: 3016.102
CID support library initialization completed.
Error in PDFX4 2007.joboptions:
/CheckCompliance out of range
Start Time: Monday, February 21, 2011 at 16:34:08
Adobe PDF Settings: C:\Documents and Settings\All Users\Application Da
%%[ Error: undefined; OffendingCommand: ÅÐÓÆ ]%%
%%[ Flushing: rest of job (to end-of-file) will be ignored ]%%
%%[ Warning: PostScript error. No PDF file produced. ] %%
Distill Time: 00 Hour(s) : 00 Minute(s) : 00.109 Second(s)
**** End of Job ****
So I'm assuming there is nothing wrong with my GS installation if Adobe is having issues as well.
I've tried importing a blank EPS file created w/Illustrator along with several different EPS files all with the same result. The only concusion I can come up with is that either all my EPS files are jacked or there's something wrong with my perl, but since I've followed the documentation on how to import the EPS, I'm at a loss.
Here's my perl code:
my $ps = new PostScript::Simple(papersize => "Letter",
colour => 1,
eps => 0,
units => "pt");
$ps->setlinewidth( 1 );
#I've tried both of the following methods
#my $image = new PostScript::Simple::EPS(file => "test2.eps");
#$ps->importeps( $image, 300,300) ;
$ps->importepsfile( "test.eps", 5,1,6,6) ;
#$Id is set in the sub parameters
Does anyone have any ideas on how I can get this to work?