PDF4Java Reference Documentation
com.o2sol.pdf4java Package / PDFFixedDocument Class / insertFile Method / insertFile(int,int,Stream) Method
Position in the collection where the pages from the file are inserted.
Position in the collection where the outlines from the file are inserted.
Stream with the file to insert.
Collapse All Expand All
In This Topic

insertFile(int,int,Stream) Method
In This Topic
Inserts a PDF file in the document.
Syntax

    public void insertFile(
       int pageIndex,
       int outlineIndex,
       Stream stream
    )

#### Parameters

pageIndex
  Position in the collection where the pages from the file are inserted.
outlineIndex
  Position in the collection where the outlines from the file are inserted.
stream
  Stream with the file to insert.

See Also

#### Reference

PDFFixedDocument Class
PDFFixedDocument Members
Overload List

© 2025 O2 Solutions All Rights Reserved.

Send comments on this topic.