It was this:
doc.getDocumentCatalog().setPageLayout("Default");
On Mon, Mar 6, 2017 at 6:26 PM, Tilman Hausherr <[email protected]>
wrote:
> Am 06.03.2017 um 16:53 schrieb Gilad Denneboom:
>
>> Hi all,
>>
>> I'm setting various Initial View settings, including the Page Layout
>> setting which I want to set as Default, but this does not seem to be one
>> of
>> the options of the PageLayout enum, nor does it accept it when I use the
>> fromString method and supply "Default", "" or null as the input parameter.
>> This works in PDFBox 1.x...
>> Any ideas how to achieve it with the new version?
>>
>
> Could you please post the code you used in 1.8 ?
>
> Tilman
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>