Print Page | Close Window

How to convert from BMP to 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=3267
Printed Date: 25 Apr 25 at 11:21AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: How to convert from BMP to PDF
Posted By: ATARO
Subject: How to convert from BMP to PDF
Date Posted: 16 Feb 16 at 6:19AM
hello,
How to convert from BMP to PDF.
I'm using Delphi10, I want to know the Delphi code to do it.
Kind Regards,
ATARO



Replies:
Posted By: Ingo
Date Posted: 16 Feb 16 at 1:35PM
Hi Ataro,

you'll need the render-functions and should enter the online-reference here:
http://www.debenu.com/docs/pdf_library_reference/RenderingAndPrinting.php
In the samples-section here in the user-forum you'll find pdf-viewer-samples regarding your question.

Cheers and welcome here,
Ingo



-------------
Cheers,
Ingo



Posted By: tfrost
Date Posted: 16 Feb 16 at 9:57PM
Normally, you would not exactly 'convert' a BMP to PDF, although the result is as if you had 'converted' it.  What you actually do is import the bitmap into a blank page, then draw the bitmap onto the page. Only after you have done that can you then save, render or print the resulting PDF, as Ingo suggests.

So the sequence would be: (1) start with the empty PDF page that the QuickPDF document provides automatically; (2) AddImageFromFile to make the BMP available; (3) DrawImage or DrawScaledImage to place the bitmap on the page; (4) SaveToFile to create the PDF, or print the PDF or render it to some other format.  To find the syntax for each or these functions, look in the PDF documentation manual for QuickPDF.  There is also a 'convert image to PDF' example script, which does exactly the four steps above.


Posted By: ATARO
Date Posted: 16 Feb 16 at 11:37PM
Hi Ingo,
Hi tfrost,

Thank you for your explanation.
I was able to understand the content.

Kind Regards,
ATARO



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