Package org.apache.padaf.preflight

Examples of org.apache.padaf.preflight.ValidationException


      resetEnginContext();
      processSubStream(null, xobj.getResources(), xobj.getCOSStream());
    } catch (ContentStreamException e) {
      errors.add(new ValidationError(e.getValidationError(), e.getMessage()));
    } catch (IOException e) {
      throw new ValidationException("Unable to check the ContentStream : "
          + e.getMessage(), e);
    }

    return errors;
  }
View Full Code Here


      resetEnginContext();
      processSubStream(null, new PDResources(res), pattern);
    } catch (ContentStreamException e) {
      errors.add(new ValidationError(e.getValidationError(), e.getMessage()));
    } catch (IOException e) {
      throw new ValidationException("Unable to check the ContentStream : "
          + e.getMessage(), e);
    }

    return errors;
  }
View Full Code Here

        String charName = null;
        try {
          charName = this.type3Encoding.getName(cid);
        } catch (IOException e) {
          // shouldn't occur
          throw new ValidationException("Unable to check Widths consistency", e);
        }

        COSBase item = charProcsDictionary.getItem(COSName.getPDFName(charName));
        COSStream charStream = COSUtils.getAsStream(item, cDoc);
        if (charStream == null) {
View Full Code Here

            .addError(new ValidationError(ERROR_FONTS_TYPE3_DAMAGED,
                "The Resources dictionary of type 3 font contains invalid font"));
            return false;
          }
        } catch (IOException e) {
          throw new ValidationException("Unable to valid the Type3 : "
              + e.getMessage());
        }
      }
    }
View Full Code Here

TOP

Related Classes of org.apache.padaf.preflight.ValidationException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.