Hi all.

I am using ImageMagic 6.3.4 Q16.

I am converting PDF files to JPG images from within a JSP/JAVA web
application.  I am executing the convert command using the following
Java code:

 

Process proc = Runtime.getRuntime().exec(cmds);

 

My command array cmds is:

C:\ImageMagick634Q16\convert,
C:\Matrix10.7.0\workspace\mx1e42ae8\PROJ-03064601_403332161_883.pdf[0],
-quiet, -thumbnail, x130, -gamma, .5,
C:\Matrix10.7.0\workspace\mx1e42ae8\PROJ-03064601_403332161_883.jpg]

 

After the file is converted, I perform some additional operations on the
file before the program is done.

 

This works fine for most PDF files.  But we have come across some files
that do not have some fonts properly embedded.  When these files are
converted manually from the windows command prompt, this is the message
I see:

 

 

C:\MATRIX10.7.0\DPIntegrationSpinner\PDFFILES>convert -quiet
PROJ-03064601_403332161_883.pdf[0] -thumbnail 200 -gamma .5
PROJ-03064601_403332161_883.jpg

 

   **** Warning: Fonts with Subtype = /TrueType should be embedded.

                 The following fonts were not embedded:

                        Arial

                        Arial,Bold

                        ArialBlack

                        TimesNewRoman

                        TimesNewRoman,Bold

 

   **** This file had errors that were repaired or ignored.

   **** The file was produced by:

   **** >>>> www.adlibsoftware.com:EXS3183-Windows 2003:TNG <<<<

   **** Please notify the author of the software that produced this

   **** file that it does not conform to Adobe's published PDF

   **** specification.

 

 

C:\MATRIX10.7.0\DPIntegrationSpinner\PDFFILES>

 

The file still gets converted correctly.

When my application attempts to convert these PDF files, the converted
JPG file does not appear in the directory until after the Java program
is finished executing.  This causes my program not to find the file, so
it errors out.

As you can see I tried to use the -quiet switch, but the message still
appears when doing the manual convert.  So this must be more of an error
than a warning because it does not get suppressed.

Does anyone know why my converted file is not showing up until after the
program is finished executing?  It only happens on the files with the
font issues.  All other PDF files appear immediately.

Thanks!

-Scott

 

_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to