Results 1 to 11 of 11

Thread: Problem in converting a .ps in .pdf with multiple images of the same pixmap

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Posts
    109
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11
    Thanks
    2
    Thanked 5 Times in 5 Posts

    Default Re: Problem in converting a .ps in .pdf with multiple images of the same pixmap

    I don't undertsand how this is a Qt problem. The code you've shown us has nothing to do with converting PostScript to PDF.

    I guess the program you're using to convert PDF to PostScript is called with wrong parameters. But you don't show us how the program is called...

  2. #2
    Join Date
    Jan 2006
    Location
    La Spezia,Italy
    Posts
    77
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    9
    Thanked 5 Times in 5 Posts

    Default Re: Problem in converting a .ps in .pdf with multiple images of the same pixmap

    I think it has something to do with Qt, I suppose that the problem arises not from the converter but from the code I wrote, maybe there is a problem there.

    For the converter, I simpy use gv and call it the same way I call it to convert a .ps to .pdf that is: "convert img.ps img.pdf" and I don't thnk the problem lies here since as I told:
    If i draw a single pixmap in the ps file I can convert it without problems, I i draw multiple pixmap (the same pixmap) I cannot convert it.
    I'm not sure it's a Qt problem but I think so... I asked youbecause I wanted to know...

    Thanks!

  3. #3
    Join Date
    Jan 2006
    Posts
    109
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11
    Thanks
    2
    Thanked 5 Times in 5 Posts

    Default Re: Problem in converting a .ps in .pdf with multiple images of the same pixmap

    As I said: you don't show us how the program is called...

    You're probably not calling convert from Qt the same way it is called from the command line.

  4. #4
    Join Date
    Jan 2006
    Posts
    109
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11
    Thanks
    2
    Thanked 5 Times in 5 Posts

    Default Re: Problem in converting a .ps in .pdf with multiple images of the same pixmap

    Oh, I now understand the problem. Qt generates the PostScript image you had posted. Then convert fails to convert the PostScript to PDF, whether you call it from Qt or not. So you suspect the PostScript file generated by Qt is broken.

    OK, I will try to have a look at the PostScript file... but I'm no specialist of PostScript.

  5. #5
    Join Date
    Jan 2006
    Posts
    109
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11
    Thanks
    2
    Thanked 5 Times in 5 Posts

    Default Re: Problem in converting a .ps in .pdf with multiple images of the same pixmap

    This works for me:
    Qt Code:
    1. convert fava.ps fava.pdf
    To copy to clipboard, switch view to plain text mode 
    I guess convert or gs are broken on your system?

  6. #6
    Join Date
    Jan 2006
    Location
    La Spezia,Italy
    Posts
    77
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    9
    Thanked 5 Times in 5 Posts

    Default Re: Problem in converting a .ps in .pdf with multiple images of the same pixmap

    Quote Originally Posted by dimitri
    This works for me:
    Qt Code:
    1. convert fava.ps fava.pdf
    To copy to clipboard, switch view to plain text mode 
    I guess convert or gs are broken on your system?
    Arrrrrrrrrgh!
    Ok thank you! I'll try to see to fit it... It's quite strange since I get en error only with this kind of files.

    Thank you!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.