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 > I need help - I can help
  New Posts New Posts RSS Feed - How to convert from BMP to PDF
  FAQ FAQ  Forum Search   Register Register  Login Login

How to convert from BMP to PDF

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


Joined: 16 Feb 16
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote ATARO Quote  Post ReplyReply Direct Link To This Post Topic: How to convert from BMP to PDF
    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
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3529
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
tfrost View Drop Down
Senior Member
Senior Member


Joined: 06 Sep 10
Location: UK
Status: Offline
Points: 437
Post Options Post Options   Thanks (0) Thanks(0)   Quote tfrost Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
ATARO View Drop Down
Beginner
Beginner


Joined: 16 Feb 16
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote ATARO Quote  Post ReplyReply Direct Link To This Post 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
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