on 07-12-2007 10:45 AM
Hello All,
We did some more investigation on that and found the following:
In the code
IWDPDFObject pdfObject = WDPDFObjectFactory.getPDFObject();
pdfObject.setData(dataSourceOutputStream);
pdfObject.setTemplate(templateSourceOutputStream);
pdfObject.setUserName(userName);
pdfObject.setLocale(new Locale(locale));
pdfObject.setUsageRights(null, PDFObject.getAllUsageRights());
pdfObject.setInteractive(false);
ByteArrayInputStream pdfInputStream = (ByteArrayInputStream)
pdfObject.createPDF();
The line pdfObject.setUsageRights(null, PDFObject.getAllUsageRights()); needs to be supplied if you set a ReaderRights credentials in the visual Admin tool.
If you don't have the ReaderRights credentials in the VisualAdmin tool then you need to delete this line pdfObject.setUsageRights(null, PDFObject.getAllUsageRights()); and then it works fine.
This is strange to me as the PDFObject.getAllUsageRights() is suppose to give us the correct entry depending on whether we do have the ReaderRigths credentials on the Visual Admin tool or not?
It appears the statement pdfObject.setUsageRights(null, PDFObject.getAllUsageRights()) crashes the application when no credential is installed (which definitely makes sense).
When a credential is installed the application crashes if this statement is NOT there.
Finally, the application runs fine when the statement AND the credential are deleted. It also runs when credential AND the statement are present.
Problem is: impossible to have a system where interactive forms are possible and not-interactive possible with a credential without having to pay the license, as the credential is apparently always accessed at runtime.
Thanks for your help and best regards,
André-Louis
Ok, We got answer from OSS.
Use the new API PDFDocument
or install the credential that is free of charge.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.