English 中文(简体)
ImageMagick PDF to JPEG conversion results in green square where image should be
原标题:

I m attempting to convert a PDF to a JPEG using ImageMagick.

The PDF: baby_aRCWTU.pdf

The command: convert -density 260 -profile SWOP.icc -profile sRGB.icm baby_aRCWTU.pdf baby_aRCWTU.jpg

The resulting JPEG: baby_aRCWTU.jpg

As you can see, the text is rendered nicely, but the embedded image shows up as a green square. Any ideas? This occurs with and without the colour profiles.

edit: reposted due to broken links

最佳回答

On a site we convert hundreds of PDF s on a daily basis where we need to create JPGs and we found it only reliable to convert the PDF s to postscript first.

We use the "pdftops" command, try

pdftops baby_aRCWTU.pdf baby_aRCWTU.ps

then your convert command above, but on the ps. Works for me, the image is then included.

问题回答

暂无回答




相关问题
How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Extract everything from PDF [closed]

Looking for solution to extract content from a PDF file (using console tool or a library). It will be used on server to produce on-line e-books from uploaded PDF files. Need to extract following ...

PDF compression How does Adobe do it?

This is a bit more of a fun question than a serious one, but how does the Adobe PDF format make documents so... portable? I just created a small Word document, 235kb in size, containing multiple ...

Exporting HTML Tables

How can I export an HTML table in my page as PDF and/or XLS? (preferably using JS (+jquery))

Using Java PDFBox library to write Russian PDF

I am using a Java library called PDFBox trying to write text to a PDF. It works perfect for English text, but when i tried to write Russian text inside the PDF the letters appeared so strange. It ...

HTML --> PDF with PHP [duplicate]

Possible Duplicate: Convert HTML + CSS to PDF with PHP? How can I convert an HTML page (via $cURL or something) to a PDF file?

Free way to convert PDF to XPS with C#

Are there any free tools that I can use to convert a PDF document into an XPS document? Although a nice programmatic API would be nice, I m not opposed to shelling out to a command line tool to do ...

PDF conversion service

I need to develop a service able to convert MS Office and Open Office documents to PDF. And the PDF`s also need to be commentable when opened in ADOBE Reader. I have used a piece of software from www....

热门标签