Discussion:
PDF error converting to loadable format
Richard Brown
2010-03-22 15:52:34 UTC
Permalink
I do > Insert External Files > PDF and select my pdf. I add the pages
options for all of the pages (there are 2). Lyx burbles a little, and then
spits the error message at me:
error converting to loadable format. The file was prepared by a friend on
Windows from a Sibelius music notation file.

If I examine the pdf file properties I see the following:
Format PDF-1.4
Producer GPL Ghostscript 8.70
Creator PDFCreator Version 0.9.9

What might be going wrong?


I'm using Komascript Book under lyx 1.6.4 on ubuntu 9.04.

Richard
Stephen Buonopane
2010-03-22 16:05:52 UTC
Permalink
Post by Richard Brown
I do > Insert External Files > PDF and select my pdf. I add the pages
options for all of the pages (there are 2). Lyx burbles a little, and then
error converting to loadable format. The file was prepared by a friend on
Windows from a Sibelius music notation file.
Format PDF-1.4
Producer GPL Ghostscript 8.70
Creator PDFCreator Version 0.9.9
Export to PDF should work fine, it is just the preview.
If you have ghostscript version 8.70, then the issue is a bug in gs.
Here is a workaround from a previous post

This seems to be a result of the bug reported here
https://bugs.launchpad.net/ubuntu/+source/imagemagick/+bug/487637

Copy the script convertDefault.py from /Applications/LyX.app/Contents/
Resources/scripts

Comment out the lines
if sys.argv[1][:4] == 'pdf:' and (version >= 0x060206 or gm):
opts = '-define pdf:use-cropbox=true ' + opts

On a Mac, the script goes in
/Users/username/Library/Application\ Support/LyX-1.6/scripts
Richard Brown
2010-03-22 17:27:41 UTC
Permalink
Thanks for this. By following your instructions I managed to a) see the pdf
in lyx on screen and b) generate a DVI file. But the place where the pdf
should be is empty. If however I c) try to generate a pdf from pdflatex, lyx
just goes into an endless loop, from which I can only exit by forcing a
program quit.

On Mon, Mar 22, 2010 at 5:05 PM, Stephen Buonopane <
Post by Stephen Buonopane
This seems to be a result of the bug reported here
https://bugs.launchpad.net/ubuntu/+source/imagemagick/+bug/487637
Copy the script convertDefault.py from
/Applications/LyX.app/Contents/Resources/scripts
Comment out the lines
opts = '-define pdf:use-cropbox=true ' + opts
On a Mac, the script goes in
/Users/username/Library/Application\ Support/LyX-1.6/scripts
Kamran SHAFQAT
2010-03-22 17:09:36 UTC
Permalink
External Files> PDF and select my pdf. I add the pages
options for all of the pages (there are 2). Lyx burbles a little, and then
error converting to loadable format. The file was prepared by a friend on
Windows from a Sibelius music notation file.
Format PDF-1.4
Producer GPL Ghostscript 8.70
Creator PDFCreator Version 0.9.9
What might be going wrong?
I'm using Komascript Book under lyx 1.6.4 on ubuntu 9.04.
Try putting the pdf file in the temp. folder of your lyx file. Long time
ago I found from the mailing list that lyx doesn't copy the pdf file
into the temp. directory automatically therefore you get an error. I
don't know if there was some other fix to this but I just copy the pdf
file that I want to attach manually in the temp. folder and this works.

Regards,

Kamran
Loading...