Results 1 to 4 of 4

Thread: how to read and write pdf

  1. #1
    Join Date
    Mar 2009
    Location
    Gansu,China
    Posts
    176
    Qt products
    Qt4
    Platforms
    Windows

    Default how to read and write pdf

    I want to read and write a pdf file,how to do?

  2. #2
    Join Date
    May 2011
    Location
    INDIA
    Posts
    3
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows Android

    Default Re: how to read and write pdf

    QAxWidget *pPDFWidget;

    pPDFWidget = new QAxWidget(this);
    pPDFWidget->setControl(QString::fromUtf8("{CA8A9780-280D-11CF-A24D-444553540000}"));

    QMessageBox::critical(this,trUtf8("PDF Error"), "Please install Adobe Acrobat Reader (R) for Pdf support!");

    pPDFWidget->setProperty("enabled", QVariant(false));

    pPDFWidget->setProperty("autoFillBackground", QVariant(false));
    pPDFWidget->setProperty("orientation", QVariant(-1));

    pPDFWidget->setProperty("geometry", QVariant(QRect(160, 70, 721, 841)));
    pPDFWidget->dynamicCall("LoadFile(const QString&)","E:\\Qt\\Qt_LGPL.pdf"); // file path
    pPDFWidget->dynamicCall("setShowScrollbars(bool)","false");
    pPDFWidget->dynamicCall("setShowToolbar(bool)","false");

    Also you can use Poppler to display pdf files.
    read more at :
    http://doc.qt.nokia.com/qq/qq27-poppler.html


    Added after 1 17 minutes:


    also u can use PODOFO.
    http://podofo.sourceforge.net/about.html#lic
    Last edited by nibedit; 7th May 2012 at 12:17.

  3. #3
    Join Date
    Mar 2009
    Location
    Gansu,China
    Posts
    176
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: how to read and write pdf

    The u!
    I want to write my contents into a PDF file, how to do?

  4. #4
    Join Date
    Sep 2011
    Posts
    1,245
    Thanks
    3
    Thanked 127 Times in 126 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: how to read and write pdf

    If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.

Similar Threads

  1. Replies: 2
    Last Post: 2nd November 2010, 05:15
  2. read and write on qtcpsocket
    By dognzhe in forum Qt Programming
    Replies: 1
    Last Post: 2nd June 2009, 09:42
  3. Read/Write from QTextStream
    By tonde in forum Qt Programming
    Replies: 7
    Last Post: 31st July 2008, 16:51
  4. Read/Write on a konsole from Qt app
    By Joccy in forum Qt Programming
    Replies: 9
    Last Post: 4th February 2008, 12:21
  5. XML -read-write
    By hgedek in forum Qt Programming
    Replies: 2
    Last Post: 3rd September 2007, 18:10

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.