ExportToXPS() returns "false"

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.
Post Reply
leuze
Posts: 8
Joined: Fri Aug 17 2007

ExportToXPS() returns "false"

Post by leuze »

Hi,
i just downloaded your trial version of your product Pdf Suite Developer for
evaluation and tried to export a pdf to xps file.

i created a vs studio 2005 solution and add references to your assemblies:
acPDFCreator.Net, acPDFCreatorLib.net and acXMLParser.Net.

My test-code is this:

acPDFCreatorLib.Initialize();
acPDFCreatorLib.SetLicenseKey("Evaluation Version", "07EFCDAB...79EE2F79");
using (FileStream file1 = new System.IO.FileStream(@"c:\license.pdf", FileMode.Open, FileAccess.Read, FileShare.Read))
{
IacDocument document = new IacDocument(null);
bool Result = document.Open(file1, "");
Result = document.ExportToXPS(@"c:\test.xps", IacXPSExportOptions.acXPSExportOptionsNone);
}
acPDFCreatorLib.Terminate();

Debugging this code i see that "document.Open()" returns 'true' but call to "document.ExportToXPS()"
returns 'false'. No xps file is created. Do i need some more dlls ?
The file "license.pdf" i use for testing is your license file.

Thanks in advance for your help !

Leuze
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Hello,

Please contact support@amyuni.com to get an evaluation version for VS 2005 Framework 3.0.

Hope this helps.
leuze
Posts: 8
Joined: Fri Aug 17 2007

Post by leuze »

Hello,
i tried the activation code you sent me and i'm now able to test the ExportToXPS() function.
Thank you !

The reason why I'm evaluating your product is that i'm currently searching for a library that is able to convert pdf to xps.
So i did some tests with your product and have now the problem that some xps files created with the ExportToXPS() function are not valid.
To be concrete: either the XPS Viewer is not able to open the created file or the xps file contains only some pages of the pdf document.

I tried to sent this mail with my test pdf file attached to your support e-mail so that you are able to verifiy my result but your mail server didn't accept it (i guess the mail size was too big).

Can you investigate this problem ?
If you need my test pdf file, please tell me how i can send it to you

Mit freundlichen Grüßen / kind regards
Heiko Leuze
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Hello,

You can send us the PDF file you are exporting to XPSand maybe 1 XPS file so we can check them.
leuze
Posts: 8
Joined: Fri Aug 17 2007

Post by leuze »

Hi,
i opened the issue #1586 for this problem.
Do you have news for me regarding this issue ?
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Hello,

To follow up on specific tickets please contact support@amyuni.com

Thank you.
Custom Brand the Amyuni PDF Printer Driver http://www.amyuni.com/en/developer/branding/index.html

Amyuni PDF Converter tested for true PDF performance. View results - http://www.amyuni.com/benchmark
Post Reply