Results 1 to 7 of 7

Thread: QTextDocument QPainter html

  1. #1
    Join Date
    Jan 2007
    Posts
    201
    Thanks
    22
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default QTextDocument QPainter html

    I have a class creating a pdf using QTextDocument and QPainter .

    What I would like to do is I would like to craate a HTML file that looks exactly same lile pdf I created

  2. #2
    Join Date
    Jan 2007
    Posts
    201
    Thanks
    22
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: QTextDocument QPainter html

    does any body have an idea for this?

  3. #3
    Join Date
    Jan 2007
    Posts
    201
    Thanks
    22
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: QTextDocument QPainter html

    hello everyone

    please help me for this, is this a possible thing that I deal with?

  4. #4
    Join Date
    Sep 2007
    Location
    Ankara TURKEY
    Posts
    32
    Thanks
    8
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question Re: QTextDocument QPainter html

    Dear All,

    We have problem placing a text on HTML. We have lines, spinboxes etc. We would like to export( or print) these
    values to html. But the problem we have is not exporting them to HTML,
    problem is to place them on HTML where we want (like x and y condinates). Is there a function to do this?

    Waiting for reply

  5. #5
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: QTextDocument QPainter html

    Quote Originally Posted by aekilic View Post
    What I would like to do is I would like to craate a HTML file that looks exactly same lile pdf I created
    As I have said in a previous post, that is not possible. Only a approximation and that is not so trivial. And once again, why do you need a HTML when you already have a PDF? What is the aim of transforming the PDF to HTML? I guess, that HTML isn't what you want...

  6. #6
    Join Date
    Jan 2007
    Posts
    201
    Thanks
    22
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: QTextDocument QPainter html

    For conversion from PDF to HTML, users wants to change the date on the HTML that is why we want to convert to HTML, what do you mean by approxemete?

  7. #7
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: QTextDocument QPainter html

    Hi,

    just because I am curious, could you post a sample PDF output of your application?

    So if it is only one date they wanna change, then before converting your data to HTML which should look like your PDF, there might be some 3rd party libraries, which could add a user editable field to a PDF, or what came to my mind:

    You have an application and want to to print a report over certain data to a PDF. Beside the pdf creation also store the pure data in a application defined format. Distribute an auxiliary program to your costumers, which reads that data in again, ask the user for their preferred data and create a PDF once again with the custom date. That is probably the easiest solution.

Similar Threads

  1. Html used in QTextEdit and QTextDocument
    By nifei in forum Qt Programming
    Replies: 5
    Last Post: 15th August 2012, 20:38
  2. QTextDocument Html URL
    By bunjee in forum Qt Programming
    Replies: 2
    Last Post: 20th February 2008, 17:00
  3. QTextDocument Html
    By bunjee in forum Qt Programming
    Replies: 1
    Last Post: 17th November 2007, 12:50
  4. 2 questions on QPainter and html
    By jiveaxe in forum Qt Programming
    Replies: 3
    Last Post: 4th September 2007, 11:30
  5. QTextDocument and background-images
    By pfusterschmied in forum Newbie
    Replies: 0
    Last Post: 1st June 2007, 19:26

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.