I’ve purchased [Aspose.Words Document Converter for .NET] from this area of your website: [Free Online App for Effortless DOCX to PDF Conversion - Document Converter for .NET]. The purchase was straightforward and I received a .lic file named [Aspose.Words.Document.Converter.for.NET.lic]. After purchasing the licence, I couldn’t see any guidance on what SDK or library I should download to get going so I’ve assumed it to be the [Aspose.Words] nuget package which is version 25.4. Perhaps I should be using a different library? The [Download] button on the page I’ve referred to just takes you to your main downloads area rather than downloading a library for use.
My lic file is in XML format and has a parent element named . I then have a public and private key element.
When I include [Aspose.Words] in my code (C# class library), embed my licence file [Aspose.Words.Document.Converter.for.NET.lic] into the project as advised by your sales team, and make a call to set the licence using the SetLicense method I get the error:
System.InvalidOperationException: ‘Invalid license format.’
Something’s odd. I’ve purchase Aspose.Imaging in the past and it all worked seamlessly but this is less straightforward. I presumed I was purchasing a version of Aspose.Words with limited functionality but I can’t set the licence using the lic file and my licence file has API keys? My invoice also included details on a Metered OEM model so I’m just confused and have purchased something that I can’t find any info on in terms of actually using it.
The sales team haven’t really been able to advise on what I’ve actually purchased - I have a licence file, subscription is mentioned and so is metered OEM.
Any pointers very welcome.
@dsthomasDCS You are right you should use Aspose.Words product. but plugin license must be applied as metered license.
In addition think, there is small misunderstanding of the features covered by your license. You have only Converter feature. But to achieve your requirement, it is required to use the following code:
Document doc = new Document(@"C:\Temp\in.docx");
doc.Save(@"C:\Temp\out.pdf");
This code include 3 features: Load MS Word documents, save PDF documents and converter. So you should have 3 feature licenses. You code should look like this:
Aspose.Words.Metered metered = new Aspose.Words.Metered();
metered.SetMeteredKey("<public-key-load-save-docx>", "<private-key-load-save-docx>"); // Apply feature license for loading and saving document (Word Processor)
metered.SetMeteredKey("<public-key-save-pdf>", "<private-key-save-pdf>"); // Apply feature license for saving PDF document (PDF Processor)
metered.SetMeteredKey("<public-key-converter>", "<private-key-converter"); // Apply feature license for converter
Document doc = new Document(@"C:\Temp\in.docx");
doc.Save(@"C:\Temp\out.pdf");
So you need also Word Processor license and PDF Processor license to make the above code work.
Hi Alexey,
That’s really useful - thanks.
So I need to buy 2 extra plugins for this to work without the watermark and you’ve advised on what these should be. I’ll get this sorted.
Final question though - does SetMeteredKey make any external API calls for validation of the public & private keys and I just want to confirm that after purchasing the 3 plugins, regardless of having what are called MeteredKeys, we won’t be charged any extra e.g. per conversion and the keys don’t expire after 1 year - it’s just our access to support that may expire?
Our customer needs this conversion for an intranet site so it’s likely it’ll be used often and we’ll need to set the licence whenever a request for conversion is requested.
Kind Regards,
Scott
@dsthomasDCS Yes, SetMeteredKey
method makes an external API call to verify license. You cal learn more about metered license here:
https://docs.aspose.com/words/net/licensing/#apply-metered-license
Regarding the license charges it is better to ask in Aspose.Purchase forum.