Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Urgent - Commenting tool bar doesn't appear

Avatar

Level 1

     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();
        }

6 Replies

Avatar

Level 10

Does the PDF that is being extended have any fields on it? Has it been flattened in a previous operation?

Paul

Avatar

Level 1

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.

Avatar

Level 10

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

Avatar

Level 1

Paul,

We tried that. It did not work. I can send an xdp which we tried.