I am using a below mentioned code to render a form and apply usage rights - setReCommenting(true). But generated PDF form does not show commenting tool bar
Document properties shows commenting "Not Allowed".
We are using Adobe LC ES2, Adobe Reader 7 & 9 and Designer 7.1 or 9
try{
FormsServiceClient fm=new FormsServiceClient(scfFactory);
PDFFormRenderSpec pdfFormRenderSpec = new PDFFormRenderSpec();
pdfFormRenderSpec.setCacheEnabled(new Boolean(false));
pdfFormRenderSpec.setRenderAtClient(RenderAtClient.Yes);
pdfFormRenderSpec.setAcrobatVersion(AcrobatVersion.Acrobat_7_0_5 );
//Set usage-rights run-time options
ReaderExtensionSpec reOptions = new ReaderExtensionSpec();
reOptions.setReCredentialAlias("READER EXTENSIONS");
reOptions.setReCredentialPassword("jC98zZ2Kg8");
reOptions.setReCommenting(true);
reOptions.setReFillIn(true);
reOptions.setReFormFieldMod(true);
reOptions.setReCreatePages(true);
reOptions.setReEmbeddedAttachments(true);
reOptions.setReReaderMessage("You may fill in forms");
URLSpec uriValues = new URLSpec();
uriValues.setApplicationWebRoot("http://talamdt02:7778/o2k");
uriValues.setContentRootURI("http://talamdt02:7778/o2k/jsp/");
uriValues.setTargetURL("http://talamdt02:7778/o2k/jsp/");
Document inDoc=new Document(new File("C:/Temp/CertificateData.xml"),true);
FormsResult frs=fm.renderPDFFormWithUsageRights("ISM-SMC.xdp", inDoc, pdfFormRenderSpec, reOptions, uriValues);
Document document=frs.getOutputContent();
document.copyToFile(new File("C:/Temp/forserverTest.pdf"));
}catch (Exception e) {
e.printStackTrace();
}
Views
Replies
Total Likes
Does the PDF that is being extended have any fields on it? Has it been flattened in a previous operation?
Paul
Views
Replies
Total Likes
Thank you for your response.
The PDF has fillable form fields.
I might not have understood what flattening means. But the rendered PDF by Form Server API does have fillable fields in it.
Views
Replies
Total Likes
As a test can you Reader Extend the form using the Web UI and see if you can comment on it?
You can get to the UI by using this URL:
http://servername:portNumber/ReaderExtensions
You will need a valid Uid and password that has the rights to add Reader Extensions.
Paul
Views
Replies
Total Likes
Paul,
We tried that. It did not work. I can send an xdp which we tried.
Views
Replies
Total Likes
Sure ....send it to LiveCycle8@gmail.com
Paul
Views
Replies
Total Likes
Toseef,
Can you please send the xdp to Paul ?
Views
Replies
Total Likes