1 Reply Latest reply on Nov 21, 2015 12:50 AM by RahulTyagi_

    Create preflight xml report using javascript

    Balav483 Level 1

      Hi friends

          I would like to run a preflight and export its report in xml format. I tried the below code, but output generated by code is not similar to the output generated manually using acrobat


      var oProfile = Preflight.getProfileByName('testing');

      if( oProfile != undefined )


      var oThermometer = app.thermometer;

      var myPreflightResult = this.preflight( oProfile, false, oThermometer);

      var cXMLData = myPreflightResult.report(oThermometer);

      var oXMLData = XMLData.parse(cXMLData, false);






      <?xml version="1.0" encoding="UTF-8" ?>

      <report xsi:schemaLocation="http://www.callassoftware.com/namespace/js js_results_schema.xsd" xmlns="http://www.callassoftware.com/namespace/js" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">




        <result severity="Error">


        <doc hits="1"></doc>





      Thanks and Regards