6 Replies Latest reply on May 6, 2010 9:36 AM by aroy@eagle.org

    Urgent - Commenting tool bar doesn't appear

    aroy@eagle.org

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