<!DOCTYPEhtmlPUBLIC"-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><htmlxmlns="http://www.w3.org/1999/xhtml"xmlns:ice="http://www.icesoft.com/icefaces/component"xmlns:ui="http://java.sun.com/jsf/facelets"xmlns:h="http://java.sun.com/jsf/html"xmlns:f="http://java.sun.com/jsf/core"xmlns:c="http://java.sun.com/jstl/core"><ui:compositiontemplate="/WEB-INF/includes/templates/page-template.xhtml"><ui:definename="pageTitle"> Extract - Aspose.PDF Demos</ui:define><ui:definename="page-content"><ui:decoratetemplate="/WEB-INF/includes/templates/tabbed_container.xhtml"><ui:definename="example"><tablewidth="90%"align="center"cellspacing="0"cellpadding="0"border="0"><tr><tdwidth="19"><imgsrc="../../../../Common/images/heading_lft.jpg"alt=""width="19"height="41"/></td><tdwidth="100%"class="demos-heading-bg"><h2class="demos-heading-bg"> Extract Pages from PDF - Aspose.Pdf.Kit</h2></td><tdwidth="19"><imgsrc="../../../../Common/images/heading_rt.jpg"alt=""width="19"height="41"/></td></tr></table><pclass="componentDescriptionTxt"> This demo illustrates how to <b> Extract </b> Pages from a Pdf document, based on user selection.Using <b> Extract </b> method in <ahref="http://www.aspose.com/documentation/java-components/aspose.pdf.kit-for-java/com/aspose/pdf/kit/pdffileeditor.html"> PdfFileEditor</a> class of Aspose.Pdf.Kit component, developers can extract any number of pages from a PDF document and save those pages as a new PDF document.<br/><br/>Fore more information, please visit <ahref="http://www.aspose.com/documentation/java-components/aspose.pdf.kit-for-java/extract-pages-from-a-pdf-document.html"> Extract Pages from a PDF Document. </a><br/><br/> Click <b> Execute Demo </b> to see how demo extracts chosen pages from a <ahref="../resources/Aspose.Pdf.Kit.pdf">pdf document</a> enabling user to download results.</p><h:selectManyCheckboxid="pageselector"layout="pageDirection"value="#{extract.pages}"><f:selectItemid="page1"itemLabel="Page 1 of File"itemValue="1"/><f:selectItemid="page2"itemLabel="Page 2 of File"itemValue="2"/><f:selectItemid="page3"itemLabel="Page 3 of File"itemValue="3"/><f:selectItemid="page4"itemLabel="Page 4 of File"itemValue="4"/><f:selectItemid="page5"itemLabel="Page 5 of File"itemValue="5"/><!-- <f:valueChangeListener type="com.aspose.pdf.kit.demos.jsf.Extract" /> --></h:selectManyCheckbox><h:commandButtonid="generate"action="#{extract.generate}"value="Execute Demo"></h:commandButton><ice:outputResourceid="outputResource"mimeType="application/pdf"resource="#{extract.generatedfile}"fileName="#{extract.filename}"shared="false"/></ui:define></ui:decorate></ui:define></ui:composition></html>