Results 1 to 2 of 2

Thread: How to convert XML+XSL to PDF in QT4.5

  1. #1
    Join Date
    Dec 2008
    Posts
    68

    Default How to convert XML+XSL to PDF in QT4.5

    Hi all,

    My application output XML+XSL so that they can be displayed in a browser.

    If I would like to convert XML + XSL result to a PDF, can QT4.5 does this?

    In the Qt4.5 page, it says : "The QtXmlPatterns module has been extended to cover XSLT... A common application of this is the transformation of XML data into human-readable formats for reporting purposes ... XSLT makes it simple to reformat XML content without changing data structures, removes the need for an intermediate DOM layer for presentation, and enables rapid solutions to be created; for example, creating reports as HTML or PDF."

    Thank you!

    P.S. sample code is highly appreciated!

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: How to convert XML+XSL to PDF in QT4.5

    XSL-Transformations usually output XML data. If you manage to convert it to something from which you can generate a PDF, then you'll be able to do that. But you have to do that conversion yourself, Qt won't help you much with it. The only thing that can be used out of the box is to use XSL-T to get HTML and then either use WebKit with QWebFrame::render() or QTextDocument with QTextDocument::print().
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. convert from QString to char[sizeof(...)]
    By adamatic in forum Qt Programming
    Replies: 4
    Last Post: 3rd September 2011, 09:05
  2. Convert between a custom data type wrapped in a QVariant
    By darkadept in forum Qt Programming
    Replies: 2
    Last Post: 17th March 2009, 09:07
  3. convert ebcdic to ascii
    By jaca in forum Qt Programming
    Replies: 1
    Last Post: 17th June 2008, 20:49
  4. Read binary file and convert to QString
    By jaca in forum Qt Programming
    Replies: 12
    Last Post: 13th June 2008, 23:05
  5. convert QString to int
    By mattia in forum Newbie
    Replies: 2
    Last Post: 4th January 2008, 09: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.