Package org.apache.pdfbox.preflight.content

Examples of org.apache.pdfbox.preflight.content.ContentStreamWrapper


     * Stream of this Form XObject.
     */
    protected void validateXObjectContent() throws ValidationException
    {
        PreflightPath vPath = context.getValidationPath();
        ContentStreamWrapper csWrapper = new ContentStreamWrapper(context, vPath.getClosestPathElement(PDPage.class));
        csWrapper.validXObjContentStream(pdXObj);
    }
View Full Code Here


    protected void validateContent(PreflightContext context, PDPage page) throws ValidationException
    {
        // TODO add this wrapper in the config object ?
        try
        {
            ContentStreamWrapper csWrapper = new ContentStreamWrapper(context, page);
            csWrapper.validPageContentStream();
        }
        catch (IOException e)
        {
            context.addValidationError(new ValidationError(ERROR_UNKOWN_ERROR, e.getMessage()));
        }
View Full Code Here

     * Validate the Pattern content like Color and Show Text Operators using an instance of ContentStreamWrapper.
     */
    protected void parsePatternContent(PreflightContext context, PDPage page, PDTilingPatternResources pattern)
            throws ValidationException
            {
        ContentStreamWrapper csWrapper = new ContentStreamWrapper(context, page);
        csWrapper.validPatternContentStream((COSStream) pattern.getCOSObject());
            }
View Full Code Here

     * Stream of this Form XObject.
     */
    protected void validateXObjectContent() throws ValidationException
    {
        PreflightPath vPath = context.getValidationPath();
        ContentStreamWrapper csWrapper = new ContentStreamWrapper(context, vPath.getClosestPathElement(PDPage.class));
        csWrapper.validXObjContentStream(pdXObj);
    }
View Full Code Here

    protected void validateContent(PreflightContext context, PDPage page) throws ValidationException
    {
        // TODO add this wrapper in the config object ?
        try
        {
            ContentStreamWrapper csWrapper = new ContentStreamWrapper(context, page);
            csWrapper.validPageContentStream();
        }
        catch (IOException e)
        {
            context.addValidationError(new ValidationError(ERROR_UNKOWN_ERROR, e.getMessage()));
        }
View Full Code Here

     * Validate the Pattern content like Color and Show Text Operators using an instance of ContentStreamWrapper.
     */
    protected void parsePatternContent(PreflightContext context, PDPage page, PDTilingPatternResources pattern)
            throws ValidationException
    {
        ContentStreamWrapper csWrapper = new ContentStreamWrapper(context, page);
        csWrapper.validPatternContentStream((COSStream) pattern.getCOSObject());
    }
View Full Code Here

TOP

Related Classes of org.apache.pdfbox.preflight.content.ContentStreamWrapper

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.