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 - wants transparent image from pdf page
  FAQ FAQ  Forum Search   Register Register  Login Login

wants transparent image from pdf page

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


Joined: 28 Jun 12
Location: india
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote shilpa Quote  Post ReplyReply Direct Link To This Post Topic: wants transparent image from pdf page
    Posted: 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

Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3530
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
AndrewC View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 08 Dec 10
Location: Geelong, Aust
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote AndrewC Quote  Post ReplyReply Direct Link To This Post 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.
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