Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.

Thu Apr 10, 2014 5:07 am

Hello Gary
Thanks for your response.I tried your code for page bottom watermark.
But it doesnt work.watermark is not getting applied to pdf also it removes the security of pdf files.
it is not asking for password to open watermark pdf file.
Could you please look into this issue?

Regards,
Pravin Bangar

bangarpravin22
 
Posts: 7
Joined: Thu Mar 27, 2014 9:12 am

Thu Apr 10, 2014 8:58 am

Hello,

The provided method is that firstly creat a new pdf template, and add a blank space at the bottom of the template, then add the watermark to the space, at last get the original pdf content and draw into the pdf template. Actually, it is a new pdf document, so there is no password, and you need to reset the password when creat the template. There is a demo for your reference.

If the issue presists, could you please provide us a simple project? It would be helpful to reproduce and work out the solution for you ASAP.
Sincerely,
Gary
E-iceblue support team
User avatar

Gary.zhang
 
Posts: 1380
Joined: Thu Apr 04, 2013 1:30 am

Mon Apr 14, 2014 6:18 am

Hello Gary
Here I have attached my small project.pdf to be watermark is "1.pdf".
pdf open password:123456
owner password:654321
While adding watermark to pdf i dont want to remove its security.
Else pls provide me solution to append watermark diagnolly.

Regards,
Pravin Bangar

bangarpravin22
 
Posts: 7
Joined: Thu Mar 27, 2014 9:12 am

Mon Apr 14, 2014 8:09 am

Hello,

Thanks for the reply.
Sorry that there are no any attachments here, could you please attach again(please zip it before uploading) or send it to our Email box(support@e-iceblue.com)?

Thanks in advance,
Gary
E-iceblue support team
User avatar

Gary.zhang
 
Posts: 1380
Joined: Thu Apr 04, 2013 1:30 am

Mon Apr 14, 2014 10:46 am

Hello

I have send attachment through given email id.Please let me know if you doesn't got it.

Regards,
Pravin Bangar

bangarpravin22
 
Posts: 7
Joined: Thu Mar 27, 2014 9:12 am

Tue Apr 15, 2014 2:30 am

Hello,

Sorry that we don't still receive the email from you.

Thanks,
Gary
E-iceblue support team
User avatar

Gary.zhang
 
Posts: 1380
Joined: Thu Apr 04, 2013 1:30 am

Tue Apr 15, 2014 4:18 am

Hello

I send it twice on given email id.I received auto generated email which says this email failed to reach some recipients.Do u have any other alternative email Id.

bangarpravin22
 
Posts: 7
Joined: Thu Mar 27, 2014 9:12 am

Tue Apr 15, 2014 7:24 am

Hello,

Please try to send it to my personal email(garyzhlei@gmail.com). Or you can also share us a link can download the file.

Thanks,
Gary
E-iceblue support team
User avatar

Gary.zhang
 
Posts: 1380
Joined: Thu Apr 04, 2013 1:30 am

Wed Apr 16, 2014 2:53 am

Hello Pravin,

You have to set the security while creating the new Pdf document.
Code: Select all
Dim doc As New PdfDocument()

doc.PageSettings.Margins.All = 0

doc.Security.OwnerPassword = "654321"

doc.Security.UserPassword = "123456"


Regarding the print issue, you can call the doc.PrintDocument.Print() method, which will print the pdf document directly.

If there are any questions, welcome to get it back to us.

Sincerely,

Gary

E-iceblue support team
User avatar

Gary.zhang
 
Posts: 1380
Joined: Thu Apr 04, 2013 1:30 am

Return to Spire.PDF

cron