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!
![]() |
How to convert from BMP to PDF |
Post Reply ![]() |
Author | |
ATARO ![]() Beginner ![]() Joined: 16 Feb 16 Status: Offline Points: 3 |
![]() ![]() ![]() ![]() ![]() 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 |
|
![]() |
|
Ingo ![]() Moderator Group ![]() ![]() Joined: 29 Oct 05 Status: Offline Points: 3529 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
|
tfrost ![]() Senior Member ![]() Joined: 06 Sep 10 Location: UK Status: Offline Points: 437 |
![]() ![]() ![]() ![]() ![]() |
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. |
|
![]() |
|
ATARO ![]() Beginner ![]() Joined: 16 Feb 16 Status: Offline Points: 3 |
![]() ![]() ![]() ![]() ![]() |
Hi Ingo,
Hi tfrost, Thank you for your explanation. I was able to understand the content. Kind Regards, ATARO |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store