Haru PDF library

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
pieland
Posts: 2
Joined: 2011-04-01T06:48:29-07:00
Authentication code: 8675308

Haru PDF library

Post by pieland »

I am trying to convert PDF documents created with the Haru PDF Library to JPG pages and it fails allways. Viewing these documents in the Adobe viewer works perfectly. This is on Centos 5.4 and the ImageMagick version is ImageMagick-6.2.8.0-4.el5_5.3. Other PDF's convert without an issue. The error is:
[root@gaptest tmp]# convert out.pdf out.jpg
ERROR: /invalidaccess in --def--
Operand stack:
--dict:5/5(L)-- F3 18 --dict:9/9(L)-- --dict:9/9(L)-- 1299 --dict:9/9(L)-- --nostringval-- false prebuilt_encoding --nostringval--
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 3 --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:1127/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:22/31(L)-- --dict:1/1(ro)(G)--
Current allocation mode is local
ESP Ghostscript 815.02: Unrecoverable error, exit code 1
convert: Postscript delegate failed `out.pdf'.
convert: missing an image filename `out.jpg'.

Any ideas ?

Marty
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Haru PDF library

Post by anthony »

You IM is very old. Though that is not a problem.

But if you IM is very old, your ghostscript is probably just as old, and that is likely the problem.

Can anyone else give something more definite about Haru produce PDF?
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply