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!
![]() |
wants transparent image from pdf page |
Post Reply
|
| Author | |
shilpa
Beginner
Joined: 28 Jun 12 Location: india Status: Offline Points: 1 |
Post Options
Thanks(0)
Quote Reply
Topic: wants transparent image from pdf pagePosted: 28 Jun 12 at 8:38AM |
|
hi,
i m trying to create .jpg or .png file from pdf page by below method Dim QP As PDFLibrary=New PDFLibrary("..\..\QuickPDFDLL0816.dll") LicenseKey = "****" '"...license_key..." Result = QP.UnlockKey(LicenseKey) If Result = 1 Then Dim strInputFilePath As String = "E:\file.pdf" QP.LoadFromFile(strInputFilePath, "") Dim FILEHANDLE As Integer = QP.DAOpenFile(strInputFilePath, "") Dim iNumPages As Integer = QP.PageCount() Dim nPage As Integer = 2 QP.RenderPageToFile(72, nPage , 5, "D:\page1.png") End If as image saved successfully, but image has background color of pdf page (as in my case it is white) i want to create transparent image from pdf page i tried method QP.SetTransparency() but it didn't work how do i get transparent image from pdf page |
|
![]() |
|
Ingo
Moderator Group
Joined: 29 Oct 05 Status: Offline Points: 3530 |
Post Options
Thanks(0)
Quote Reply
Posted: 29 Jun 12 at 8:33AM |
|
Hi!
You won't get this with QuickPDF. QP renders the pdf-page like it is ... that's all. You should try a graphic tool after rendering the pdf-page. Transparency in QuickPDF means to make different objects shining through if one is over the other. Cheers and welcome here, Ingo Edited by Ingo - 29 Jun 12 at 8:36AM |
|
![]() |
|
AndrewC
Moderator Group
Joined: 08 Dec 10 Location: Geelong, Aust Status: Offline Points: 841 |
Post Options
Thanks(0)
Quote Reply
Posted: 02 Jul 12 at 1:26PM |
|
Hello, Quick PDF Library cannot create transparent images. The SetTransparency command is used to draw transparent objects on top of objects on the PDF page. You will need to use some other graphics library to convert the PNG to a transparent version. Also, you shouldn't mix the standard functions with the DA functions. - QP.DAOpenFile should only be used with other DA functions such as DAFindPage. You cannot open a file with QP.DAOpenFile() and then call QP.PageCount(). Andrew.
|
|
![]() |
|
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