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 - Insert  Image To PDF Code
  FAQ FAQ  Forum Search   Register Register  Login Login

Insert Image To PDF Code

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


Joined: 12 Dec 11
Location: Iran
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mahdi_S_T Quote  Post ReplyReply Direct Link To This Post Topic: Insert Image To PDF Code
    Posted: 12 Dec 11 at 6:35PM
I need , Insert  Image To PDF :
1- Transparent Image
2- Left and Top Position
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: 12 Dec 11 at 7:25PM
Hi!

I think you wanna know if you can do this with QuickPDF ...?
Yes! This is possible with QuickPDF ;-)
This should be your official page for the first questions:
http://www.quickpdflibrary.com/support/index.php

Cheers and welcome here,
Ingo

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: 13 Dec 11 at 6:24AM
The FAQ is a good resource for questions like this - http://www.quickpdflibrary.com/faq/  - I searched to Transparency using the search function in the browser and came up with this.


If you want to add a watermark and have the watermark at 50% transparency then you can use the following code.

            QP.SetOrigin(1);
            QP.AddImageFromFile("aldi.bmp", 0);
            QP.SetTextSize(48);
            QP.DrawText(100, 300, "Transparency 0% under");

            QP.SetTransparency(60);   // 60 % transparent.
            QP.DrawImage(0, 0, QP.PageWidth(), QP.PageHeight());

            QP.DrawText(100, 400 , "Transparency 60% over");

            QP.SetTransparency(0);  // Fully opaque.  ie.  No Transparency

            QP.DrawText(100, 500 , "Transparenct 0% over");

            QP.SaveToFile("out.pdf");
            System.Diagnostics.Process.Start(@"out.pdf");

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