Issues with PDF Creator for Silverlight

The PDF Creator .NET Library enables you to create secure PDF documents on the fly and to view, print and process existing PDF documents. If you have any questions about PDF Creator .Net, please post them here.

Issues with PDF Creator for Silverlight

Postby cthomson on Tue Feb 08 2011

Hi there,

I've downloaded a trial version of PDF Creator and PDF for Silverlight. I'm currently trying to use the server side code in a webservice.

I can successfully load a pdf to the creator object and optmise but when trying to access the underlying XAML attribute it returns null.

Code example as follows:

====================================
acPDFCreatorLib.Initialize()

Dim acpdf As New Amyuni.PDFCreator.IacDocument()

acpdf.SetLicenseKey("Amyuni PDF Creator .NET Evaluation", "07EFCDAB...F3D7B1B")

Dim fln As New FileStream(Server.MapPath("mypdf.pdf"), FileMode.Open, FileAccess.Read)
acpdf.OpenEx(fln, "")

acpdf.Attribute("PageSequenceStr").Value = ""
acpdf.OptimizeDocument(1)

Dim o = acpdf.Attribute("XAML").Value // Returns null
============================================

Is the trial version limited in that pdf creator will not return the compressed XAML? Or am I missing something...

Any help would be appreciated.
cthomson
 
Posts: 1
Joined: Tue Feb 08 2011

Re: Issues with PDF Creator for Silverlight

Postby Jose on Fri Apr 29 2011

Hello,

The issue you are encountering is being caused because the “License to” and “Activation Code” values are incorrect or commented out.
Below are evaluation values that you can use.

//var b = acpdf.SetLicenseKey("Silverlight Evaluation", "07EFCDAB...8E7E085619");
acpdf.SetLicenseKey("Silverlight Evaluation", "07EFCDAB01000100D4F1764524E1760C4B8D6F736CDACF64D61974D59D46C422156936E39CB79AE221B5E13C3FD42F20B663D4B58FC1");

Thanks
Get PDF Suite, the expert .NET developer toolkit for PDF conversion, creation and editing - [color=#0040FF]www.amyuni.com/pdfsuite [/color]
Jose
Amyuni Team
 
Posts: 546
Joined: Tue Oct 01 2002


Return to Amyuni PDF Creator .NET (PDF Viewer / Editor)

Who is online

Users browsing this forum: No registered users and 1 guest