Results 1 to 11 of 11

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

Threaded View

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

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

    Hello,
    this is the very simple program I wrote:
    Qt Code:
    1. QPainter paint(PSPrinter);
    2. QPixmap sigmaPixmap("Immagini/sigma.xpm");
    3. for(int i=1;i<5;i++) paint.drawPixmap(QPointF(10*i,10),sigmaPixmap);
    To copy to clipboard, switch view to plain text mode 

    If I use this code to print on screen, I have no problem.
    if I use it to print on .ps,no problem.

    The problem arises when I try to convert the ps to pdf usint "gs",this is the error I get:
    convert: Delegate failed `"gs" -q -dBATCH -dSAFER -dMaxBitmap=500000000 -dNOPAUSE -dAlignToPixels=0 -sDEVICE="pdfwrite" -sOutputFile="%o" -f"%i"'.

    Please,don't tell me to print directly in pdf! I need to print first on ps...

    I also tryed to create a Vector of pixmap like this:

    Qt Code:
    1. QVector<QPixmap> pix(5,sigmaPixmap);
    2. for(int i=1;i<5;i++) paint2.drawPixmap(QPointF(10*i,10),pix[i]);
    To copy to clipboard, switch view to plain text mode 

    but the result is the same.

    What do you think?

    thanks!
    Last edited by vratojr; 12th January 2006 at 11:17.

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.