How do i add a watermark?
I think something is wrong with the IBitSet.
CDocAuthCallback clbk = new CDocAuthCallback();
clbk.m_pxsInst = MyIPXS;
IPXC_Document Mydoc = MyPXC.OpenDocumentFromFile(lsSourceFile, clbk);
IPXC_WatermarkParams MyWatermark = MyPXC.CreateWatermarkParams();
MyWatermark.Text = lsWatermarkText;
MyWatermark.WatermarkType = PXC_WatermarkType.Watermark_Text;
MyWatermark.Rotation = 0;
IBitSet MyBitSet = MyIAUX.CreateBitSet(1);
Mydoc.PlaceWatermark(MyBitSet, MyWatermark);
Mydoc.WriteToFile(lsOutputFile);
watermark
Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Tracker Supp-Stefan
Forum rules
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.
When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.
When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
-
- User
- Posts: 5522
- Joined: Fri Nov 21, 2014 8:27 am
Re: watermark
Hello Tom,
Check this wiki help page:
https://sdkhelp.pdf-xchange.com/vie ... eWatermark
Cheers,
Alex
Check this wiki help page:
https://sdkhelp.pdf-xchange.com/vie ... eWatermark
Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ