Print Page | Close Window

quick pdf library

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: General Discussion
Forum Description: Discussion board for Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=2374
Printed Date: 26 Jun 24 at 3:23PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: quick pdf library
Posted By: mayur
Subject: quick pdf library
Date 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.



Replies:
Posted By: AndrewC
Date 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.

   http://www.quickpdflibrary.com/help/quickpdf/AppendixA.php - http://www.quickpdflibrary.com/help/quickpdf/AppendixA.php

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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk