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

load(String,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,
       java.lang.String password
    )

#### Parameters

fileName
  Path to source PDF file
password
  Password for decrypting the 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.