Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > General Discussion
  New Posts New Posts RSS Feed - quick pdf library
  FAQ FAQ  Forum Search   Register Register  Login Login

quick pdf library

 Post Reply Post Reply
Author
Message
mayur View Drop Down
Beginner
Beginner


Joined: 18 Aug 12
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote mayur Quote  Post ReplyReply Direct Link To This Post Topic: quick pdf library
    Posted: 18 Aug 12 at 12:20PM
Hi,

I am working on the C# windows form project. I want to use quick pdf library. Is it possible to convert the html to pdf using quick pdf library. The HTML pages are present on the local drive. Can i convert the local HTMl pages to pdf using this library? Please let me know about it. Any sample code will be greatly appreciated.


Thanks.
Back to Top
AndrewC View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 08 Dec 10
Location: Geelong, Aust
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote AndrewC Quote  Post ReplyReply Direct Link To This Post Posted: 20 Aug 12 at 12:51PM

Quick PDF Library can render a subset of HTML tags and features.   The list of tags can be found here.


It will depend on how complex your PDF files are I suspect as to how well it will work for you.

Here is some sample code.

            QP.NewDocument();
            QP.SetOrigin(1);

            string s = File.ReadAllText("input.html");

            QP.DrawBox(10, 10, 300, 500, 0);
            string overflow = QP.DrawHTMLTextBox(10, 10, 300, 500, s);

            while (overflow != "")
            {
                QP.NewPage();
                QP.DrawBox(10, 10, 300, 500, 0);
                overflow = QP.DrawHTMLTextBox(10, 10, 300, 500, overflow);
            }

            QP.SaveToFile("out.pdf");


Andrew
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store