Conversion crashing when converting pdf with diacritic marks

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
BENDERNEELAFRY

Conversion crashing when converting pdf with diacritic marks

Post by BENDERNEELAFRY »

hi All, i am very new to imagemagick, so I beg your indulgence in advance! We are using a report writer called actuate to generate a pdf file. This report can sometimes contain diacritic marks, like accents in French etc. We then use the convert command to flip the report in order to get a mirror image, but we are finding that the convert fails if diacritic marks are found. We are using the following command:
convert -flop -append -density 200 abc.pdf def.pdf

The conversion works, if there are no such marks.

We are using TimesNewRoman and TimesNewRoman Bold. Does anyone know if this conversion is possible? many thanks in advance.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Conversion crashing when converting pdf with diacritic marks

Post by fmw42 »

convert -flop -append -density 200 abc.pdf def.pdf
-append needs two input images and an output image. not sure why you need append just to mirror the image. For a flop of one image, try

convert -density 200 abc.pdf -flop abc_flopped.pdf

If you want to -flop two images and append, then try

convert -density 200 abc.pdf def.pdf -flop -append abc_def_flopped.pdf

If you are trying to flop both images and make them into a two-page pdf, then try

convert -density 200 abc.pdf def.pdf -flop abc_def.pdf

Note that IM will rasterize your image to do the flop and then convert back to vector pdf. So IM may not be the best solution.

see http://www.imagemagick.org/Usage/formats/#vector
BENDERNEELAFRY

Re: Conversion crashing when converting pdf with diacritic marks

Post by BENDERNEELAFRY »

thanks..tried your suggestion..but same results as before in that diacritic marks in the input file appears to crash the process, whereas if the input file has no such marks, it converts ok. Any other suggestions please?
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Conversion crashing when converting pdf with diacritic marks

Post by magick »

Post a URL to one of your PDF's that causes the crash. We need to reproduce the problem before we can suggest a fix / workaround.
Post Reply