Re: PDF error converting to loadable format

2010-03-22 Thread Stephen Buonopane


On Mar 22, 2010, at 11:52 AM, Richard Brown wrote:


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


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 


Re: PDF error converting to loadable format

2010-03-22 Thread Kamran SHAFQAT

On 22/03/2010 15:52, Richard Brown wrote:

  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.
   
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


Re: PDF error converting to loadable format

2010-03-22 Thread Richard Brown
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 
stephen.buonop...@bucknell.edu wrote:



 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


Re: PDF error converting to loadable format

2010-03-22 Thread Stephen Buonopane


On Mar 22, 2010, at 11:52 AM, Richard Brown wrote:


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


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 


Re: PDF error converting to loadable format

2010-03-22 Thread Kamran SHAFQAT

On 22/03/2010 15:52, Richard Brown wrote:

  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.
   
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


Re: PDF error converting to loadable format

2010-03-22 Thread Richard Brown
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 
stephen.buonop...@bucknell.edu wrote:



 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


Re: PDF error converting to loadable format

2010-03-22 Thread Stephen Buonopane


On Mar 22, 2010, at 11:52 AM, Richard Brown wrote:


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


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 


Re: PDF error converting to loadable format

2010-03-22 Thread Kamran SHAFQAT

On 22/03/2010 15:52, Richard Brown wrote:

  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.
   
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


Re: PDF error converting to loadable format

2010-03-22 Thread Richard Brown
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 <
stephen.buonop...@bucknell.edu> wrote:

>
>
> 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


Re: PDF error converting to loadable format

2010-03-04 Thread Nikos Alexandris
On Thu, 2010-03-04 at 09:58 +, Graham Smith wrote:
 I have a horrible feeling I have asked this before, but on Ubuntu 9.10 
 Lyx won't show PDF images in the document (they compile OK).

The same (almost) here. In my case most of the .pdfs won't appear but
a few will do. But, as you say, the compile ok in the final pdf.

Nikos



Re: PDF error converting to loadable format

2010-03-04 Thread Stephen Buonopane
- Original Message - 
I have a horrible feeling I have asked this before, but on Ubuntu 9.10 
Lyx won't show PDF images in the document (they compile OK). 

They show up on Windows OK, so I assume its some set up on Linux that I 
need to tweak. 
-- 

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 




Re: PDF error converting to loadable format

2010-03-04 Thread Manveru
2010/3/4 Stephen Buonopane sbuon...@bucknell.edu

 - Original Message -
 I have a horrible feeling I have asked this before, but on Ubuntu 9.10
 Lyx won't show PDF images in the document (they compile OK).

 They show up on Windows OK, so I assume its some set up on Linux that I
 need to tweak.
 --

 If you have ghostscript version 8.70, then the issue is a bug in gs.
 Here is a workaround from a previous post
 [...]


WTF? There is no such thing as ghostscript 8.7 on official Ghostscript site:
http://pages.cs.wisc.edu/~ghost/

On the other hand there is not link on old site to new site:
http://www.ghostscript.com/

However on one of CTAN mirrors there is 8.71:
ftp://ctan.tug.org/tex-archive/support/ghostscript/GPL/gs871/

Has anyone know whether mentioned bug is corrected in 8.71?

-- 
Manveru
jabber: manv...@manveru.pl
gg: 1624001
  http://www.manveru.pl


Re: PDF error converting to loadable format

2010-03-04 Thread Uwe Stöhr

Manveru schrieb:


However on one of CTAN mirrors there is 8.71:
ftp://ctan.tug.org/tex-archive/support/ghostscript/GPL/gs871/

Has anyone know whether mentioned bug is corrected in 8.71?


This bug should be fixed in 8.71.

regards Uwe


Re: PDF error converting to loadable format

2010-03-04 Thread Nikos Alexandris
On Thu, 2010-03-04 at 09:58 +, Graham Smith wrote:
 I have a horrible feeling I have asked this before, but on Ubuntu 9.10 
 Lyx won't show PDF images in the document (they compile OK).

The same (almost) here. In my case most of the .pdfs won't appear but
a few will do. But, as you say, the compile ok in the final pdf.

Nikos



Re: PDF error converting to loadable format

2010-03-04 Thread Stephen Buonopane
- Original Message - 
I have a horrible feeling I have asked this before, but on Ubuntu 9.10 
Lyx won't show PDF images in the document (they compile OK). 

They show up on Windows OK, so I assume its some set up on Linux that I 
need to tweak. 
-- 

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 




Re: PDF error converting to loadable format

2010-03-04 Thread Manveru
2010/3/4 Stephen Buonopane sbuon...@bucknell.edu

 - Original Message -
 I have a horrible feeling I have asked this before, but on Ubuntu 9.10
 Lyx won't show PDF images in the document (they compile OK).

 They show up on Windows OK, so I assume its some set up on Linux that I
 need to tweak.
 --

 If you have ghostscript version 8.70, then the issue is a bug in gs.
 Here is a workaround from a previous post
 [...]


WTF? There is no such thing as ghostscript 8.7 on official Ghostscript site:
http://pages.cs.wisc.edu/~ghost/

On the other hand there is not link on old site to new site:
http://www.ghostscript.com/

However on one of CTAN mirrors there is 8.71:
ftp://ctan.tug.org/tex-archive/support/ghostscript/GPL/gs871/

Has anyone know whether mentioned bug is corrected in 8.71?

-- 
Manveru
jabber: manv...@manveru.pl
gg: 1624001
  http://www.manveru.pl


Re: PDF error converting to loadable format

2010-03-04 Thread Uwe Stöhr

Manveru schrieb:


However on one of CTAN mirrors there is 8.71:
ftp://ctan.tug.org/tex-archive/support/ghostscript/GPL/gs871/

Has anyone know whether mentioned bug is corrected in 8.71?


This bug should be fixed in 8.71.

regards Uwe


Re: PDF error converting to loadable format

2010-03-04 Thread Nikos Alexandris
On Thu, 2010-03-04 at 09:58 +, Graham Smith wrote:
> I have a horrible feeling I have asked this before, but on Ubuntu 9.10 
> Lyx won't show PDF images in the document (they compile OK).

The same (almost) here. In my case most of the ".pdf"s won't appear but
a few will do. But, as you say, the compile ok in the final pdf.

Nikos



Re: PDF error converting to loadable format

2010-03-04 Thread Stephen Buonopane
- Original Message - 
>I have a horrible feeling I have asked this before, but on Ubuntu 9.10 
>Lyx won't show PDF images in the document (they compile OK). 

>They show up on Windows OK, so I assume its some set up on Linux that I 
>need to tweak. 
-- 

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 




Re: PDF error converting to loadable format

2010-03-04 Thread Manveru
2010/3/4 Stephen Buonopane 

> - Original Message -
> >I have a horrible feeling I have asked this before, but on Ubuntu 9.10
> >Lyx won't show PDF images in the document (they compile OK).
>
> >They show up on Windows OK, so I assume its some set up on Linux that I
> >need to tweak.
> --
>
> If you have ghostscript version 8.70, then the issue is a bug in gs.
> Here is a workaround from a previous post
> [...]


WTF? There is no such thing as ghostscript 8.7 on official Ghostscript site:
http://pages.cs.wisc.edu/~ghost/

On the other hand there is not link on old site to new site:
http://www.ghostscript.com/

However on one of CTAN mirrors there is 8.71:
ftp://ctan.tug.org/tex-archive/support/ghostscript/GPL/gs871/

Has anyone know whether mentioned bug is corrected in 8.71?

-- 
Manveru
jabber: manv...@manveru.pl
gg: 1624001
  http://www.manveru.pl


Re: PDF error converting to loadable format

2010-03-04 Thread Uwe Stöhr

Manveru schrieb:


However on one of CTAN mirrors there is 8.71:
ftp://ctan.tug.org/tex-archive/support/ghostscript/GPL/gs871/

Has anyone know whether mentioned bug is corrected in 8.71?


This bug should be fixed in 8.71.

regards Uwe