WaterMark & Get***Informations(DocID)

PDF-XChange Viewer SDK for Developer's
(ActiveX and Simple DLL Versions)

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

Rad1
User
Posts: 108
Joined: Wed May 13, 2009 2:21 pm

WaterMark & Get***Informations(DocID)

Post by Rad1 »

Hi,

How can I add a watermark. I know that is possible (ex : Demo version :mrgreen: ) ?

And can I know if document is signed or not using code ? :roll:

The same question for attached files ?

If is not possible now, I can wait for next build. I know that you're the best, and you are able to do it.

PS : I'm Very happy to have the new build :D , in particulary attachement tools. It's realy great.

Thanks.
User avatar
Chris - PDF-XChange
Site Admin
Posts: 798
Joined: Tue Apr 14, 2009 11:33 pm

Re: WaterMark & Get***Informations(DocID)

Post by Chris - PDF-XChange »

Hi rad1,

Thanks for the kind words, in regards to your inquiry, you can add watermarks using the PDF-Tools SDK, PXCLIB40 LIB Add_watermark function, see PDFToolsV4SDK Help File, pg 228 as well there are sample files included with the install that should cover watermarking routines as well. If you are converting from third party file format, the drivers API SDK has add watermark functionality as well.

Our dev team crew will have to provide you with the rest of the required information re: the new feature coding and documentation I'll ask them to review your post.

Regards,
Chris
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.


Chris Attrell
Tracker Sales & Support North America
http://www.tracker-software.com
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2449
Joined: Thu Jun 30, 2005 4:11 pm

Re: WaterMark & Get***Informations(DocID)

Post by Vasyl - PDF-XChange »

How can I add a watermark..?
You may use stamp annotation for this. For example, you ca run JS:

Code: Select all

function PlaceWM(pageNum)
{
	var pageRect = this.getPageBox("Media", pageNum);
	var annot = this.addAnnot({
					page: pageNum,
					type: "Stamp",
					author: "Rad1",
					name: "myStamp",
					rect: pageRect,
					contents: "Test Watermark",
					AP: "Approved",
					readOnly: true});
};
var n = this.numPages;
for (var i = 0; i < n; i++) 
	PlaceWM(i); 
And can I know if document is signed or not using code ?
The same question for attached files ?
These features can be added to the next build. Please be patient.
PDF-XChange Co. LTD (Project Developer)

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.