1ActuallynotonlylinksbutallkindsofPDFannotationswillgetlost2 openrightThisoptionputsanemptypagebeforetherstlogicalpageIncombinationwithnup2x1nup2x2etcthismeansthattherstpageisontherightside ID: 133247
Download Pdf The PPT/PDF document "WhenproducingDVIoutputpdfpagescannotinse..." is the property of its rightful owner. Permission is granted to download and print the materials on this web site for personal, non-commercial use only, and to display it on your personal computer provided you do not modify the materials and that you retain all copyright notices contained in the materials. By downloading content from our website, you accept the terms of this agreement.
ThepdfpagesPackageAndreasMatthiasandreas.matthias@gmail.com2019/11/21AbstractThispackagesimpliestheinsertionofexternalmulti-pagePDForPSdoc-uments.ItsupportspdfTeX,VTeX,XeTeX,LuaTeX,andpTeX.Contents1Introduction12Usage22.1PackageOptions............................22.2Commands...............................22.3TheLayout...............................102.4HintsforUsersofplatex........................112.5Pitfalls..................................113RequiredPackages114Acknowledgment121IntroductionWhencreatingPDFdocuments,itissometimesusefultoinsertpagesofexternalPDFdocuments.Thiscanbedonewiththe\includegraphicscommandfromthegraphicspackage.Butasimple\includegraphics{doc.pdf}normallypro-duces`Overfull\hbox'and`Overfull\vbox'warnings,becausethesizeoftheinsertedpagesdoesnotmatchtheprintspace.ThepdfpagespackagemakesiteasytoinsertpagesofexternalPDFdocumentswithoutworryingabouttheprintspace.Herearesomefeaturesofthepdfpagespackage:Severallogicalpagescanbearrangedontoeachsheetofpaperandthelayoutcanbechangedindividually.Alotofhypertextoperationsaresupported,likelinkstotheinsertedpages,linkstotheoriginalPDFdocument,threads,etc.WhenworkingwithVTeXthesameispossiblewithPostScriptdocuments,too.NotethatPostScriptdocumentsareonlysupportedbyVTeXandnotbypdfLaTeX. Thislehasversionnumberv0.5o,lastrevised2019/11/21.1 WhenproducingDVIoutputpdfpagescannotinsertpagesofaPDFdocu-ments.Butinsteadofinterruptingexecutionpdfpageswillinsertemptypages.Thisfeatureisimportantwhenusingpackageslikepst-pdf,whichneedtopro-duceDVIoutputattherstrun.LinksandotherinteractivefeaturesofPDFdocumentsWheninclud-ingpagesofaPDFonlythesocalledcontentstreamofthesepagesiscopiedbutnolinks.UptonowtherearenoTeX-engines(pdfTeX,XeTeX,...)avail-ablethatcancopylinksorotherinteractivefeaturesofaPDFdocument,too.Thus,allkindsoflinks1willgetlostduringinclusion.(Using\includepdf,\includegraphics,orotherlow-levelcommands.)However,there'saglimmerofhope.SomelinksmaybeextractedandlaterreinsertedbyapackagecalledpaxwhichcanbedownloadedfromCTAN[3].Havealookatit!2Usage2.1PackageOptions\usepackage[hoptionsi]{pdfpages}hoptioni{final:Insertspages.Thisisthedefault.draft:Doesnotinsertpages,butprintsaboxandthelenameinstead.demo:InsertsemptypagesinsteadoftheactualPDFs.nodemo:Disables`demo'.enable-survey:Activatessurveyfunctionalities.(ex-perimental,subjecttochange)2.2CommandsInsertspagesofanexternalPDFdocument.\includepdf\includepdf[hkey=vali]{hlenamei}hkey=vali{Acommaseparatedlistofoptionsusingthehkeyi=hvalueisyntax.hlenamei{FilenameofthePDFdocument.(Thelenamemustnotcontainanyblanks!)Thefollowinglistdescribesallpossibleoptionsof\includepdf.Alloptionsareusingthehkey=valueisyntax.Mainoptions:pagesSelectspagestoinsert.Theargumentisacommaseparatedlist,containingpagenumbers(pages={3,5,6,8}),rangesofpagenumbers(pages={4-9})oranycombination.Toinsertemptypagesuse{}. 1ActuallynotonlylinksbutallkindsofPDFannotationswillgetlost.2 E.g.:pages={3,{},8-11,15}willinsertpage3,anemptypage,andpages8,9,10,11,and15.Pagerangesarespeciedbythefollowingsyntax:hmi-hni.Thisselectsallpagesfromhmitohni.Omittinghmidefaultstotherstpage;omit-tinghnidefaultstothelastpageofthedocument.Anotherwaytoselectthelastpageofthedocument,istousethekeywordlast.(Thisisonlypermittedinapagerange.)E.g.:pages=-willinsertallpagesofthedocument,andpages=last-1willinsertallpagesinreverseorder.(Default:pages=1)nupPutsmultiplelogicalpagesontoeachsheetofpaper.Thesyntaxofthisoptionis:nup=hxnupixhynupi.Wherehxnupiandhynupispecifythenumberoflogicalpagesinhorizontalandverticaldirection,whicharearrangedoneachsheetofpaper.(Default:nup=1x1)landscapeSpeciestheformatofthesheetofpaper,whichisrotatedby90degrees.Thisdoesnotaectthelogicalpages,whichwillnotberotatedbythe`landscape'option.Torotatethelogicalpagesusethe`angle'option(e.g.`angle=90').Either`true'or`false'(ornovalue,whichisequivalentto`true').(Default:landscape=false)Layoutoptions:deltaPutssomehorizontalandverticalspacebetweenthelogicalpages.Theargumentshouldbetwodimensions,separatedbyspace.SeeChapter2.3andFigure1.(Default:delta=00).osetDisplacestheoriginoftheinsertedpages.Theargumentshouldbetwodimensions,separatedbyspace.In`oneside'documentspositivevaluesshiftthepagestotherightandtothetopmargin,respectively,whereasin`twoside'documentspositivevaluesshiftthepagestotheouterandtothetopmargin,respectively.SeeChapter2.3andFigure1.(Default:offset=00)framePutsaframearoundeachlogicalpage.Theframeismadeoflinesofthickness\fboxrule.Either`true'or`false'(ornovalue,whichisequivalentto`true').(Default:frame=false)columnPdfpagesnormallyuses`row-major'layout,wheresuccessivepagesareplacedinrowsalongthepaper.Thecolumnoptionchangestheout-putintoa`column-major'layout,wheresuccessivepagesarearrangedincolumnsdownthepaper.Either`true'or`false'(ornovalue,whichisequivalentto`true').(Default:column=false)columnstrictBydefaultthelastpageisnotsetinastrict`column-major'lay-out,ifthelogicalpagesdonotllupthewholepage.Thecolumnstrictoptionforcesastrict`column-major'layoutforthelastpage.Either`true'or`false'(ornovalue,whichisequivalentto`true').(Default:columnstrict=false) 1 4 2 5 3 columnstrict=true 1 3 5 2 4 columnstrict=false3 openrightThisoptionputsanemptypagebeforetherstlogicalpage.Incombinationwithnup=2x1,nup=2x2,etc.,thismeansthattherstpageisontherightside.Thesameeectcanbeachievedwiththepagesoption,ifanemptypageisinsertedinfrontoftherstpage.Either`true'or`false'(ornovalue,whichisequivalentto`true').(Default:openright=false)pagecommandDeclaresLATEXcommands,whichareexecutedoneachsheetofpaper.(Default:pagecommand=f\thispagestylefemptygg)turnBydefaultpagesinlandscapeformataredisplayedinlandscapeorien-tation(ifthePDFviewersupportsthis).Withturn=falsethiscanbeprohibited.Either`true'or`false'(ornovalue,whichisequivalentto`true').(Default:turn=true)noautoscaleBydefaultpagesarescaledautomatically.Thiscanbesup-pressedwiththenoautoscaleoption.Incombinationwiththescaleoption(fromgraphicx)theuserhasfullcontroloverthescalingprocess.Either`true'or`false'(ornovalue,whichisequivalentto`true').(Default:noautoscale=false)tpaperAdjuststhepapersizetotheoneoftheinserteddocument.Either`true'or`false'(ornovalue,whichisequivalentto`true').(Default:fitpaper=false)re ectRe ectsincludedpages.Either`true'or`false'(ornovalue,whichisequivalentto`true').(Default:reflect=false)signatureCreatesbookletsbyrearrangingpagesintosignaturesandsettingnup=1x2ornup=2x1,respectively.Thisoptiontakesoneargumentspec-ifyingthesizeofthesignature,whichshouldbeamultipleof4.Anexamplefordocumentsinportraitorientation:\includepdf[pages=-,signature=8,landscape]{portrait-doc.pdf}Anexamplefordocumentsinlandscapeorientation:\includepdf[pages=-,signature=8]{landscape-doc.pdf}signature*Similartosignature,butnowforright-edgebinding.bookletThisoptionisjustashortcutofthe`signature'option,ifyouchooseasignaturevaluesolargethatallpagestintoonesignature.Either`true'or`false'(ornovalue,whichisequivalentto`true').(Default:booklet=false)picturecommandDeclarespicturecommandswhichareexecutedoneverypagewithinapictureenvironmentwiththebasepointatthelowerleftcornerofthepage.(Thebasepointdoesnotchangeifthepageisrotated,e.g.bythelandscapeoption.)(Default:picturecommand=fg)picturecommand*Likepicturecommand,butwiththerestrictionthatpicturecommand*executesitspicturecommandsonlyontheveryrstpage.(Default:picturecommand*=fg)pagetemplateBydefaulttherstinsertedpagewillbeusedasatemplate.Thismeansthatallfurtherpagesarescaledsuchthattheymatchwithinthecontourofthisrstpage.Thisoptionallowstodeclareanotherpagetobeusedasatemplate;whichisonlyusefulifaPDFdocumentcontainsdierentpagesizesorpageorientations.Theargumentshouldbeapagenumber.(Default:pagetemplate=hfirstinsertedpagei)4 templatesizeThisoptionissimilartothepagetemplateoption,butitsargumentsspecifythesizeofthetemplatedirectly.Itssyntaxis:templatesize={hwidthi}{hheighti}Note:Thetwolengthsshouldbeabitlargerthandesired,tokeepawayfromroundingerrors.(Default:templatesize=hsizeofthefirstinsertedpagei)rotateoversizeThisoptionallowstorotateoversizedpages.E.g.pagesinlandscapeorientationareoversizedrelativelytotheirportraitcounter-part,becausetheydonotmatchwithinthecontourofaportraitpagewithoutrotatingthem.Bydefaultoversizedpagesarescaleandarenotrotated.Either`true'or`false'(ornovalue,whichisequivalentto`true').(Default:rotateoversize=false)doublepagesInsertseverypagetwice.Thisisusefulfor2-upprinting,ifonewantstocutthestackofpaperafterwardstogettwocopies.Either`true'or`false'(ornovalue,whichisequivalentto`true').(Default:doublepages=false)doublepagestwistWhereaswithdoublepagesthecuttingedgeisonceontheinnersideandonesontheouterside,doublepagestwistturnsthepagessuch,thatthecuttingedgeisalwaysontheinnerside.Either`true'or`false'(ornovalue,whichisequivalentto`true').(Default:doublepagestwist=false)doublepagestwistoddTurnsthepagessuch,thatthecuttingedgeisalwaysontheouterside.Either`true'or`false'(ornovalue,whichisequivalentto`true').(Default:doublepagestwistodd=false)doublepagestwist*Likedoublepagestwistbutfordoublesideprinting.Ei-ther`true'or`false'(ornovalue,whichisequivalentto`true').(Default:doublepagestwist*=false)doublepagestwistodd*LikedoublepagestwistoddbutfordoublesideprintingEither`true'or`false'(ornovalue,whichisequivalentto`true').(Default:doublepagestwistodd*=false)duplicatepagesDuplicateseachpagentimes,withnbeingtheargumenttothisoption.(Default:duplicatepages=2)Miscellaneousoptions:lastpageInDVImodepdfpagescannotdeterminethenumberofpagesoftheincludeddocument.Sothisoptionissuitabletospecifythenumberofpages.ThisoptionisonlyusedinDVImodeandhasnomeaninginanyothermode.Theargumentshouldbeapagenumber.(Default:lastpage=1)Hypertextoptions:linkInsertedpagesbecomeatargetofahyperlink.Thenameofthelinkis`hfilenamei.hpagenumberi'.Thelenameextensionofhlenameimustnotbestripped.Either`true'or`false'(ornovalue,whichisequivalentto`true').(Default:link=false)linknameChangesthedefaultlinknamecreatedbytheoptionlink.Insteadofhlenameithevalueofthisoptionisused.E.g.linkname=mylinkproducesthelinknames`mylink.hpagenumberi'.5 threadCombinesinsertedpagestoanarticlethread.Either`true'or`false'(ornovalue,whichisequivalentto`true').(Default:thread=false)threadnameSeveralthreadsaredistinguishedbytheirthreadnames.Bydefaultthethreadnameisequaltothelename(pluslenameexten-sion),butitcanbechangedwiththisoption.Thisisusefulifthesameleisinsertedtwiceormoretimesandshouldnotbecombinedtoonesinglethread.Ortheotherwayroundifpagesfromdier-entdocumentsshouldbecombinedtoonesinglethread.(Default:threadname=hfilename.exti)linktodocLetstheinsertedpagesbehyperlinkstothedocumentfromwhichtheywereextracted.NotethatthePDF-Viewerwillnotndthele,ifhlenameihasnotlenameextension(.pdf).Either`true'or`false'(ornovalue,whichisequivalentto`true').(Default:linktodoc=false)Additionalhypertextoptions:linktSpecies,howtheviewerdisplaysalinkedpage.Thisoptionchangesthedefaultbehavioroftheoptionlink.Possiblevaluesare:Fit,FitHhtopi,FitVhlefti,FitB,FitBHhtopi,FitBVhlefti,andRegion.See[2]foradetailsdescriptionofthesePDFdestinations.TheregiondestinationwasaddedbypdfpagesandisnotarealPDFdestinations.ItscalesapagesuchthattheincludedpagetsexactlyintothewindowofthePDFviewer.NotethatnotalloftheseoptionsaresupportedbyallTEX-enginesordrivers,respectively.(Default:linkfit=fit)linktodoctBydefaulttheoptionlinktodocopensthepagein`FitinWin-dow'view.Anotherviewcanbespeciedwiththisoption.PossiblevaluesarethelegalPDFtokens:/FitHhtopi,/FitVhlefti,etc.(See[2]formoredetails.)(Default:linktodocfit=/Fit)newwindowBydefaultoptionlinktodocopensanewwindow.Thiscanbechangedwithoptionnewwindow.Either`true'or`false'(ornovalue,whichisequivalentto`true').(Default:newwindow=true)linklenameSetsthename(withpath)oftheletobelinkedtobytheoptionlinktodoc.Youwillhardlyeverneedthisoption.(Default:linkfilename=hfilename.exti)Experimentaloptions:(Syntaxmaychangeinfutureversions!)addtotocAddsanentrytothetableofcontents.Thisoptionrequiresvearguments,separatedbycommas:addtotoc=fhpagenumberi,hsectioni,hleveli,hheadingi,hlabelighpagenumberi:Pagenumberoftheinsertedpage.hsectioni:LATEXsectioningname{e.g.,section,subsection,...hleveli:Number,denotingdepthofsection{e.g.,1forsectionlevel,2forsubsectionlevel,...hheadingi:Titleinsertedinthetableofcontents.hlabeli:Nameofthelabel.Thislabelcanbereferredtowith\refand\pageref.6 Note:Theorderoftheveargumentsmustnotbemixed.Otherwiseyouwillgetverystrangeerrormessages.Theaddtotocoptionacceptsmultiplesetsoftheabovementionedvearguments,allseparatedbycommas.Thesetsmustbesortedsuchthatthehpagenumberisareinascendingorder.(Strictlyspeakingtheymusthavethesameorderasthepagenumbersspeciedbythepagesoption.)Theproperrecursivedenitionoftheaddtotocoptionis:addtotoc=fhtoc-listightoc-listi!hpagenumberi,hsectioni,hleveli,hheadingi,hlabeli[,htoc-listi]addtolistAddsanentrytothelistofgures,thelistoftables,oranyotherlist(e.g.from oat.sty).Thisoptionrequiresfourarguments,separatedbycommas:addtolist=fhpagenumberi,htypei,hheadingi,hlabelighpagenumberi:Pagenumberoftheinsertedpage.htypei:Nameofa oatingenvironment.(figure,table,etc.)hheadingi:TitleinsertedintoLoF,LoT,etc.hlabeli:Nameofthelabel.Thislabelcanbereferredtowith\refand\pageref.Likeaddtotoc,addtolistacceptsmultiplesetsoftheabovementionedfourarguments,allseparatedbycommas.Theproperrecursivedenitionis:addtolist=fhlof-listighlof-listi!hpagenumberi,htypei,hheadingi,hlabeli[,hlof-listi]surveyCreatesasurveyofthosepagesofthedocument,whicharemarkedwith\AddToSurvey.(\AddToSurveyisasimplecommandwithnoargu-ments.Itjustwritesoutlabelstothe.auxle.)Thisoptionmaybeusedwhenpreparingslidestocreateasurveyofonly`nished'pages{ifpagesarebuildupincrementally.Tousethisoptionaspecialsequenceofproductionstepsmustbeobeyed.Hereisasmallexample:---slides.tex---\documentclass{article}\usepackage[draft,enable-survey]{pdfpages}\begin{document}...sometext...\AddToSurvey...sometext...\includepdf[survey,nup=2x2]{slides-tmp.pdf}\end{document}Thisistheoutlineofadocument,calledslides.tex.RunitthroughpdfLaTeXseveraltimesuntilallcross-referencesaresolved.(LATEXwillproduceawarning,ifcross-referencesarenotsolved,yet.)Nowcopytheleslides.pdftoslides-tmp.pdfandrenamedraft(packageoptionofpdfpages)tofinal.ThenextandnalrunthroughpdfLaTeXwillactuallyinsertthedesiredpages,whereastheformerrunswithdraftdidjustinsertblankpages.Theinsertedpagesarehyperlinktotheorignialpages.7 Experienceduserswouldcertainlycallpdflatex'\PassOptionsToPackage{final}{pdfpages}\input{slides}'insteadofexchangingdraftforfinal.Either`true'or`false'(ornovalue,whichisequivalentto`true').(Default:survey=false)survey-nolinkSameasoptionsurveyexceptthattheinsertedpagesdonotbecomehyperlinks.Thisoptionmaybeusedtocreateanexternalsurvey.Tocontinuetheexampleabove(slides.tex),itisnowpossibletocreatehandoutsofthe`nished'slidesasanexternaldocument.\documentclass{article}\usepackage{xr}\externaldocument{slides}\usepackage[enable-survey]{pdfpages}\begin{document}\includepdf[survey-nolink,nup=1x2]{slides.pdf}\end{document}Either`true'or`false'(ornovalue,whichisequivalentto`true').(Default:survey-nolink=false)xr-prexAdjustsaprextothelabels\includepdfislookingfor.Thenameoftheprexmustbethesameasthenameoftheoptionalargumentof\externaldocument.(Default:xr-prefix=fg)Internallythecommand\includepdfmakesuseofthe\includegraphicscom-mandfromthegraphicx(actuallygraphics)package.Henceitispossibletousealltheoptionsof\includegraphics,too.Optionswhicharenotinterpretedby\includepdfarepasseddirectlyto\includegraphics.Especiallythe`trim'and`clip'optionsof\includegraphicsarequiteuseful,ifonlypartsofapageshouldbeinserted.(Maybetocutotheheaderandfooteroftheinsertedpages.)Justusethe`trim'and`clip'optionsasiftheywereoptionsof\includepdf.Theywillbepassedto\includegraphicsinternally.InsertspagesofseveralexternalPDFdocuments.\includepdfmerge\includepdfmerge[hkey=vali]{hle-page-listi}hkey=vali{Acommaseparatedlistofoptionsusingthehkeyi=hvalueisyntax.hle-page-listi{hlenamei[,hpagespeci][,hle-page-listi]Acommaseparatedlistoflenamesandoptionalhpagespecispeciers.Ahpagespecicanbeeverythingtheoptionpagesaccepts.Leadingandtrailingspacesofitemsinthelistisstripped.The\includepdfmergecommandusesthesameoptionsas\includepdfwithoneexception.Theoptionpageshasnomeaningfor\includepdfmerge.Insteadthehpagespecispecierisusedtospecifywhichpagesshouldbeinserted.Thehpagespecispecieracceptsthesamevaluesasthepagesoption.Ifnohpagespecispecierisgiven,onlytherstpagewillbeinserted.8 - delx - delx 6 ?dely 6 ?dely - 6oxoy physicalsheetofpaperdelta=hdelxihdelyi logicalpagesoffset=hoxihoyi centeredposition Figure1:Layout9 Examples:TocreateakindofsummaryofthreePDFdocuments,itmightbenicetoinsertjusttherstpageofeachdocumentandtoprovidelinkstotheoriginaldocuments:\includepdfmerge[nup=1x3,landscape,linktodoc]{doc1.pdf,doc2.pdf,doc3.pdf}Butsometimesthetitlepageofadocumentisnottherstpage.Soitwouldbemorepleasanttoinsertthetitlepageofeachdocumentthantherstpage.Thiscanbedonewiththehpagespecispecier.Thefollowingexampleinsertsthesecondpageofdoc1.pdfandthethirdpageofdoc2.pdfanddoc3.pdf:\includepdfmerge[nup=1x3,landscape,linktodoc]{doc1.pdf,2,doc2.pdf,3,doc3.pdf,3}Hereisanexampleofmorecomplexhpagespecispeciers:\includepdfmerge[nup=1x3,landscape,linktodoc]{doc1.pdf,1-3,doc2.pdf,3,5,9,doc3.pdf,3-5,7}Ifyouneedthesameoptionsfor\includepdfallthetime,itispossibletode-\includepdfsetneglobaloptionswith\includepdfset.Theargumentof\includepdfsetisacommaseparatedlistofoptions,usingthehkeyi=hvalueisyntax.Theseop-tionsareprocessedeachtime\includepdfiscalled.Localoptions(passedasanoptionalargumentdirectlyto\includepdf)areoverwritingglobaloptions:\includepdfset{hglobaloptionsi}\includepdf[hlocaloptionsi]{pdf-file}Onlyoptionsspecictothispackagecanbemadeglobalby\includepdfset.Optionsofthegraphicxpackagearenotconcerned.Whenusingtheoptionthreadtocreateanarticlethread,itmaybeusefulto\threadinfodictcreateathreadinformationdictionary,too,whichcontainsinformationsaboutthethread,suchasitstitle,author,andcreationdate.Themacro\threadinfodictisusedtosettheseinformations.Itcanberedenedandmaycontainentriesofathreadinformationdictionaryinlow-levelPDFcommands.(See[2]formoreinformation.)\renewcommand*{\threadinfodict}{/Title(Myfirstthread)/Author(That'sme!)}2.3TheLayoutThedefaultlayoutcanbechangedbytheoptionsdeltaandoffset.Figure1showsthemeaningoftheseoptions.Theinsertedlogicalpagesarebeingcenteredonthesheetofpaperbydefault.Todisplacethemusetheoffsetoption,whichargumentshouldbetwodimen-sions.E.g.offset=10mm14mmmeansthatthelogicalpagesaredisplacedby10mminhorizontaldirectionandby14mminverticaldirection.In`oneside'10 documentspositivevaluesshiftthepagestotherightandtothetopmargin,re-spectively,whereasin`twoside'documentspositivevaluesshiftthepagestotheouterandtothetopmargin,respectively.Bydefaultlogicalpagesarebeingarrangedsidebyside.Toputsomespacebetweenthem,usethedeltaoption,whoseargumentshouldbetwodimensions.Figure1showsthemeaningofdelta.Thelayoutoptionsdeltaandoffsetalwaysrefertoasheetofpaperinportraitorientation.Nomatterwhetheryouhavesetthelandscapeoptiontotrue,ornot.Ifyouareconfusedabouthorizontal(x)andvertical(y)directions,justsettheoptionturn=false.NowyourPDFviewershowsthepagesinthesameorientationasinFigure1.AndtheoptionsdeltaandoffsethavethesamemeaningasinFigure1.Regardlessofanyotheroptions.2.4HintsforUsersofplatexTherecommendedwaytotellpdfpagesthatyouareusingplatexistoadddvipdfmxasaclassoption,e.g.:\documentclass[dvipdfmx]{article}\usepackage{pdfpages}PdfpagescallsprogramextractbbtogetthetotalnumberofpagesofaPDF.Butifanxbble(outputofextractbb)exists,pdfpageswillnotcallextractbbbutusethisle.However,beverycautiouswithxbbles:DonotusexbblesforPDFswithvaryingpagesizes.Becauseanxbblecontainsonlythepagesizeofasinglepage.2.5PitfallspagecolorWhensettingthebackgroundcolorwith\pagecolor(acommandfromcolor.sty),therst\pagecolormustprecede\usepackage{pdfpages}.\usepackage{color}\pagecolor{white}\usepackage{pdfpages}Thecolorisnonrelevant,itcanbechangedafterwardsbyusing\pagecoloragain.Justtheorder(rst\pagecolorbefore\usepackage{pdfpages})isimportant.{ThisisnotneededwhenusingVTeX.3RequiredPackagesThepdfpagespackagerequiresthefollowingpackages:eso-picCTAN:macros/latex/contrib/eso-pic/atbegshiCTAN:macros/latex/contrib/oberdiek/pd scapeCTAN:macros/latex/contrib/oberdiek/11 graphicx,ifthen,calcThesepackagesbelongtothestandardLATEXdistribu-tion.Furthermoreitrequiresarecentversionof:pdftex.defhttp://www.tug.org/applications/pdftex/SincepdfTEX,Version3.14159-1.00a-pretest-20010806,PDFimporthasimprovedalot.Thisresultsinmuchsmallerlesizes,fasterprocessingandtheintuitivelycorrecttreatmentoflandscapepages.ThelatestversionofpdfTEXcanbefoundat:ftp://ftp.muni.cz/pub/tex/local/cstug/thanh/pdftex.4AcknowledgmentIwouldliketothankRolfNiepraschkandHeikoOberdiekfortheirusefulhintsandsuggestions.AswellasRossMoore,whoencouragedmetoimplementthehypertextfeatures.References[1]HanTh^eThanh,SebastianRahtz,HansHagen,ThepdfTeXusermanual,http://www.tug.org/applications/pdftex[2]PDFReference,AdobeSystemsIncorporated,http://www.adobe.com/devnet/pdf/pdf_reference.html[3]HeikoOberdiek,pax:ExtractandreinsertPDFannotationswithpdfTeXhttp://www.ctan.org/pkg/pax12