0

Upgraded IcePDF, but layout management has changed? How do I read pagelayout in IcePDF V.6.3.2

Thanks for any help input, regards Per

In version 4.2.2 I used to do typeless like this:

Catalog catalog = document_.getCatalog();
Object tmp = catalog.getObject(Catalog.PAGELAYOUT_KEY);
if (tmp != null && tmp instanceof Name) {
            String pageLayout = ((Name) tmp).getName();

etc...

PeJ
  • 1
  • 1
  • I don't believe that code has change in quite some time. A similar code fragment is still used int he SwingController. Not all documents have a layout value. The library is also being maintained on github, just release version 7.0.1 a few weeks ago. – pcorless Feb 16 '23 at 16:36

0 Answers0