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!
LoadPDFFileAsBM - returns VB picture |
Post Reply |
Author | |
faypj
Beginner Joined: 01 Sep 06 Status: Offline Points: 2 |
Post Options
Thanks(0)
Posted: 02 Sep 06 at 9:52AM |
A newbie to isedquickpdf: Had looked around most of the alternatives which either were inadequate for my needs or had a hefty royalty for redistribution Found this forum helpful so I thought I'd put a brief sample code back. LoadPDFFileAsBM returns a VB picture containing the 1st page of a PDF file. Syntax is very similar to the VB LoadPicture function but has an optional quality setting. There probably is a slightly faster way using setdibits rather than writing to filebut below code works reliably and not too slow. Usage: PictureBox1= LoadPDFFileAsBM("MyPDFFile.pdf") Public Function LoadPDFFileAsBM(FN As String, Optional PDFQuality As Integer = 72) As StdPicture Public Function ThisFileExists(ThisFile As String) As Boolean On Error GoTo handler: |
|
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