Applying license doesn't remove watermarks

A forum for questions or concerns related to the PDF-XChange Core API SDK

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.
Post Reply
alexandrescoelho
User
Posts: 11
Joined: Wed Apr 25, 2018 12:50 pm

Applying license doesn't remove watermarks

Post by alexandrescoelho »

Hi,

Can anyone help me to understand why I'm still get the final pdf file with watermarks after saving it?
This is how I'm setting up the license.

Code: Select all

private string licKey = "actual license goes here";
private IPXV_Inst pxvInst;
private IPXC_Inst pxcInst;
private IPXC_Document doc = null;

pxvInst = new PDFXEdit.PXV_Inst();                
pxvInst.Init(null,licKey);
pxcInst = (PDFXEdit.IPXC_Inst)pxvInst.GetExtension("PXC");
pxcInst.Init(licKey);
// from this point foward we open, manipulate and save the file
Thank you!
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Applying license doesn't remove watermarks

Post by Sasha - Tracker Dev Team »

Hello alexandrescoelho ,

Why are you using the IPXV_Inst in the Core API level? The Core API level is IPXC. You can read more about the initialization here:
https://sdkhelp.pdf-xchange.com/view/PXV:PXC_Inst
And also, check out the CoreAPIDemo sample project:
https://github.com/tracker-software/PDF ... oreAPIDemo

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
alexandrescoelho
User
Posts: 11
Joined: Wed Apr 25, 2018 12:50 pm

Re: Applying license doesn't remove watermarks

Post by alexandrescoelho »

Hi Alex,

I know you probably check hundreds of posts here. But it's kind of frustrating having to explain the same thing too many times even though you have suggested me to code this way.
Never mind, my company has bought the license already so I have no option unless make this works.
I have asked about using the license in the code and got no answer for that instead of got another question. So here is the answer viewtopic.php?f=66&t=30872 in this post we discuss what I did.
Can you please for god sake explain me how to use the license in a .NET environment?

I'm really sorry about this post but I can't handle this anymore, the client has been waiting for its app since last week and we are unable to provide it just because we can't set this license.

Thank you for understanding
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Applying license doesn't remove watermarks

Post by Sasha - Tracker Dev Team »

Hello alexandrescoelho,

I've asked about the type of license, because you've posted at the Core API SDK section. By seeing that you've used the IPXV level - I thought that you have bought the Core API license pack and the license problems lie there.
I've prepared a small sample for you - I'll attach it and duplicate the code:
SimpleEditorLKDemo.zip
(271.32 KiB) Downloaded 95 times
Code:

Code: Select all

public partial class Form1 : Form
{
	IPXV_Inst m_Inst;
	public Form1()
	{
		m_Inst = new PXV_Inst();
		m_Inst.Init(null, "<YOUR LICENSE KEY HERE>");
		InitializeComponent();
	}

	private void button1_Click(object sender, EventArgs e)
	{
		IPXC_Inst pxcInst = (IPXC_Inst)m_Inst.GetExtension("PXC");
		IPXC_Document coreDoc = pxcInst.NewDocument();
		PXC_Rect rc;
		rc.left = 0;
		rc.right = 600;
		rc.top = 800;
		rc.bottom = 0;
		IPXC_UndoRedoData urd;
		coreDoc.Pages.AddEmptyPages(0, 4, ref rc, null, out urd);

		SaveFileDialog sfd = new SaveFileDialog();
		sfd.Filter = "PDF Documents (*.pdf)|*.pdf|All Files (*.*)|*.*";
		sfd.DefaultExt = "pdf";
		sfd.FilterIndex = 1;
		sfd.CheckPathExists = true;
		if (sfd.ShowDialog() == DialogResult.OK)
		{
			coreDoc.WriteToFile(sfd.FileName);
			System.Diagnostics.Process.Start("explorer.exe", "/select, \"" + sfd.FileName + "\"");
		}
	}

	private void Form1_FormClosed(object sender, FormClosedEventArgs e)
	{
		m_Inst.Shutdown();
	}
}
Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
alexandrescoelho
User
Posts: 11
Joined: Wed Apr 25, 2018 12:50 pm

Re: Applying license doesn't remove watermarks

Post by alexandrescoelho »

Hi Alex,

It doesn't work! The license we have bought is PDF-XChange PRO SDK
I've downloaded your sample and copied the license key from the email we have received and it doesn't work!
There is no sample from you guys in github where I can put the license key you have sent to get it running as it should
Maybe you guys have sent a wrong license. Please help me out!
The license starts with *Serial Key string redacted by moderator*
Thank you

[Moderation note: Please 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.]
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17906
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: Applying license doesn't remove watermarks

Post by Tracker Supp-Stefan »

Hello alexandrescoelho,

Sasha won't be able to assist with licensing issues on the forum, so please do contact us at sales@tracker-software with your order number and we will work with you to get you the correct license.

Regards,
Stefan
Post Reply