Package org.apache.pdfbox.preflight.utils

Examples of org.apache.pdfbox.preflight.utils.ByteArrayDataSource


        {
            InputStream input = new FileInputStream(file);
            ValidationResult result;
            try
            {
                PreflightParser parser = new PreflightParser(new ByteArrayDataSource(input));
                parser.parse();
                document = (PreflightDocument) parser.getPDDocument();
                // to speeds up tests, skip validation of page count is over the limit
                if (document.getNumberOfPages() < 8191)
                {
View Full Code Here

TOP

Related Classes of org.apache.pdfbox.preflight.utils.ByteArrayDataSource

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.