PDF4Java Reference Documentation
com.o2sol.pdf4java.document Package / PDFDocument Class / load Method / load(String) Method
Path to source PDF file
Collapse All Expand All
In This Topic

load(String) Method
In This Topic
Loads a PDF file and returns either a fixed document or a portfolio depending on the PDF file type.
Syntax

    public static PDFDocument load(
       java.lang.String fileName
    )

#### Parameters

fileName
  Path to source PDF file

#### Return Value

A com.o2sol.pdf4java.PDFFixedDocument or a com.o2sol.pdf4java.portfolios.PDFPortfolio depending on the PDF file type.
See Also

#### Reference

PDFDocument Class
PDFDocument Members
Overload List

© 2025 O2 Solutions All Rights Reserved.

Send comments on this topic.