03-06-2012
Ghostscript error while converting PDF to Postscript
Hi,
I have been using Ghostscript to convert PDF to Postscript (PS) file.
GS version : 8.15.2. GS command used is :
gs -q -dNOPAUSE -dBATCH -dSAFER -sDEVICE=pswrite -sOutputFile=output1.ps input1.pdf
File format conversion to PS is success in majority of the cases but some PDF files are producing 'Unrecoverable error' as below -
ERROR: /undefined in --get--
Operand stack:
--dict:8/8(L)-- --dict:10/13(L)-- R8 --dict:10/10(ro)(G)-- R8
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1 3 %oparray_pop 1 3 %oparray_pop 1 3 %oparray_pop --nostringval-- --nostringval-- 2 1 22 --nostringval-- %for_pos_int_continue --nostringval-- --nostringval-- --nostringval-- --nostringval-- %array_continue --nostringval-- false 1 %stopped_push --nostringval-- %loop_continue --nostringval-- --nostringval-- --nostringval-- --nostringval-- --nostringval--
Dictionary stack:
--dict:1119/1686(ro)(G)-- --dict:0/20(G)-- --dict:107/200(L)-- --dict:107/200(L)-- --dict:104/127(ro)(G)-- --dict:241/347(ro)(G)-- --dict:20/24(L)-- --dict:4/6(L)-- --dict:21/32(L)-- --dict:7/8(L)-- --dict:1/1(ro)(G)-- --dict:10/13(L)--
Current allocation mode is local
Last OS error: 2
ESP Ghostscript 815.02: Unrecoverable error, exit code 1
Please let me know what could be the actual reason for this error and how can I go ahead with resolving it.
Thanks in advance.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi All,
I am trying to convert my file containing a image file (bmp,jpg, or gif ) into a postscript format on solaris.
I have configured the printer with following configuration,
PrinterName : psPrinter
Print Server : "machine name"
Printer Port : /dev/null
Printer Type :... (1 Reply)
Discussion started by: zing
1 Replies
2. UNIX for Dummies Questions & Answers
hi - go easy on me, i'm new to UNIX...
i need to resample huge pdf files and make them smaller.
distiller won't resize existing pdf files.
i thought i could print the pdf to a postscript file and then resample that. would that work?
if so, how?
is this the best way forward or should... (1 Reply)
Discussion started by: jono2000
1 Replies
3. AIX
Hi Gurus,
We are currently using a JAVA program that enables us to use some forms and convert them from PDF to print them postscript. It works great except that everytime it runs JAVA sucks 100% of the CPU.
What can I do to reduce the impact?
I am looking at:
1. Nice the java... (1 Reply)
Discussion started by: Luck
1 Replies
4. Shell Programming and Scripting
I have a number of post script files (*.ps) which I need to convert into Pdf.
I am using the ps2pdf command for this, but the trouble is that this commands takes only one input at a time. So the command
ps2pdf *.ps doesnt work.
how can I make a script which will take each .ps file from... (3 Replies)
Discussion started by: jasjot31
3 Replies
5. AIX
my app creates pdf and prints them on windows. I want to run the same app on AIX 5.2. I convert PDF to PS using acroread command. But some options of acroread like landscape etc do not work. I came to know from google that there is bug with acroread for AIX with landscape option.
Can you suggest... (3 Replies)
Discussion started by: vinayakshukre
3 Replies
6. UNIX for Dummies Questions & Answers
Hi everybody! This is my first post. I am a student and I'm familiarizing myself with linux.
I have lots of directories each containing file called "zadaci.latex". I want to convert them to pdf's and rename them to <directory_name>.pdf.
I read alot on this forum and came up with this script:... (2 Replies)
Discussion started by: Element9
2 Replies
7. UNIX for Dummies Questions & Answers
Hi there,
is it possible to convert pdf files to Word with some free :p software or with some trick??? Now I'm working with LATEX and I can get pdf format but I would like to get .rtf or .doc files too:rolleyes:.
Lately I found something like that, but it wasn't free.
Thanks for any... (1 Reply)
Discussion started by: Giordano Bruno
1 Replies
8. Shell Programming and Scripting
Hi All,
I have a requirement of converting an html form into pdf using perl.
The html form contains images, tables and css implementation. I tried using various perl modules but failed to achive the target.
I succeeded in generating a pdf from the html file using... (2 Replies)
Discussion started by: DILEEP410
2 Replies
9. Shell Programming and Scripting
Hello, excuse my English... I'm trying to do a nautilus-script to transform a normal A4 pdf to another pdf with book format, ready to be printed (double sided). I mean, the script put pages in order and also put 2 pages per horizontal A4 page (p.e.: a pdf with 8 pages would look like: 8-1, 2-7,... (2 Replies)
Discussion started by: dokan
2 Replies
10. Shell Programming and Scripting
Does anybody have idea of Converting secured pdf files to pdf using acroread ?
---------- Post updated at 04:49 PM ---------- Previous update was at 04:44 PM ----------
This file is not password protected. (4 Replies)
Discussion started by: Soham
4 Replies
LEARN ABOUT DEBIAN
merge_fonts
merge_fonts(3alleg4) Allegro manual merge_fonts(3alleg4)
NAME
merge_fonts - Merges two fonts into one font. Allegro game programming library.
SYNOPSIS
#include <allegro.h>
FONT *merge_fonts(FONT *f1, FONT *f2)
DESCRIPTION
This function merges the character ranges from two fonts and returns a new font containing all characters in the old fonts. In general, you
cannot merge fonts of different types (eg, TrueType fonts and bitmapped fonts), but as a special case, this function can promote a mono-
chrome bitmapped font to a color font and merge those. Example:
FONT *myfont;
FONT *myfancy_font;
FONT *lower_range;
FONT *upper_range;
FONT *capitals;
FONT *combined_font;
FONT *tempfont;
...
/* Create a font that contains the capitals from */
/* the fancy font but other characters from myfont */
lower_range = extract_font_range(myfont, -1, 'A'-1);
upper_range = extract_font_range(myfont, 'Z'+1, -1);
capitals = extract_font_range(myfancy_font, 'A', 'Z');
tempfont = merge_fonts(lower_range, capitals);
combined_font = merge_fonts(tempfont, upper_range);
/* Clean up temporary fonts */
destroy_font(lower_range);
destroy_font(upper_range);
destroy_font(capitals);
destroy_font(tempfont);
RETURN VALUE
Returns a pointer to the new font or NULL on error. Remember that you are responsible for destroying the font when you are finished with it
to avoid memory leaks.
SEE ALSO
extract_font_range(3alleg4), is_trans_font(3alleg4), is_color_font(3alleg4), is_mono_font(3alleg4), exfont(3alleg4)
Allegro version 4.4.2 merge_fonts(3alleg4)