<!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"> Insert - 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> </tr><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"> Insert Pages into 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 <b> Inserts </b> Pages from one Pdf document into another, based on user input. Using <b> Insert </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 insert pages at any location of the PDF document.<br/>Fore more information, please visit <ahref="http://www.aspose.com/documentation/java-components/aspose.pdf.kit-for-java/insert-pages-into-a-pdf-document.html"> Insert Pages into a PDF Document. </a><br/><br/>Click <b> Execute Demo </b> to see how demo takes <ahref="../resources/Aspose.Pdf.Kit.pdf">document 1</a> and <ahref="../resources/Aspose.Pdf.pdf">document 2</a> inserting pages from one document into the other based on user input. Results of this operation can be donwloaded by user for review.</p><h:selectManyCheckboxid="pageselector"layout="pageDirection"immediate="true"value="#{insert.pages}"><f:selectItemid="page1"itemLabel="Page 1 of File 2"itemValue="1"/><f:selectItemid="page2"itemLabel="Page 2 of File 2"itemValue="2"/><f:selectItemid="page3"itemLabel="Page 3 of File 2"itemValue="3"/><f:selectItemid="page4"itemLabel="Page 4 of File 2"itemValue="4"/><f:selectItemid="page5"itemLabel="Page 5 of File 2"itemValue="5"/><!-- <f:valueChangeListener type="com.aspose.pdf.kit.demos.jsf.Insert" /> --></h:selectManyCheckbox><h:selectOneRadioid="insertinto"immediate="true"layout="pageDirection"value="#{insert.location}"><f:selectItemid="into1"itemValue="1"itemLabel="at 1st page"/><f:selectItemid="into2"itemValue="2"itemLabel="at 2nd page"/><f:selectItemid="into3"itemValue="3"itemLabel="at 3rd page"/><f:selectItemid="into4"itemValue="4"itemLabel="at 4th page"/><f:selectItemid="into5"itemValue="5"itemLabel="at 5th page"/><!-- <f:valueChangeListener type="com.aspose.pdf.kit.demos.jsf.Insert" /> --></h:selectOneRadio><h:commandButtonid="generate"action="#{insert.generate}"value="Execute Demo"></h:commandButton><ice:outputResourceid="outputResource"mimeType="application/pdf"resource="#{insert.generatedfile}"fileName="#{insert.filename}"shared="false"/></ui:define></ui:decorate></ui:define></ui:composition></html>