Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
3.0.0 PDFBox
-
None
Description
A guy on the user mailing list used this code:
PDDocumentCatalog pg = new PDDocumentCatalog(mergedPDF) ;
PageMode pm = PageMode.USE_OUTLINES;
pg.setPageMode(pm);
This destroyed his PDF. The only usages of the constructors are internal to PDFBox, when a document is newly created or opened. My first thought was to make the constructor package local to avoid people using this, but it would prevent subclassing (although I can't imagine why anybody would do that), so I'll make it protected instead.