Print Page | Close Window

Image from picturebox in VB 2010 to Quick PDF

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=1893
Printed Date: 13 May 25 at 9:11AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Image from picturebox in VB 2010 to Quick PDF
Posted By: Gearcam
Subject: Image from picturebox in VB 2010 to Quick PDF
Date Posted: 15 Jul 11 at 9:46AM
Hi is there a way to directley produce a PDF in code using Visual Basic 2010 of an image on the screen which is a number of lines text etc.
This is shown in a picture box.
 
Steve



Replies:
Posted By: Ingo
Date Posted: 17 Jul 11 at 11:16AM
Hi!

You can save the content of image-components into jpeg or bmp
and then you can use the imagefile2pdf-functionality from QuickPDF.
In the online reference at www.quickpdf.org you'll find more...

Cheers and welcome here,
Ingo


Posted By: AndrewC
Date Posted: 21 Jul 11 at 8:55AM
The PictureBox component has a method to save the Image to a file.  From there you can use QPL to create a PDF file.

  pictureBox1.Image.Save("image.pdf");
  int id = QP.AddImageFromFile("image.pdf", 0);
  QP.SelectImage(id);
  QP.DrawImage(0, 0, QP.PageWidth(), QP.PageHeight());
  QP.SaveToFile("output.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