I create a PDF file using pdfbox 2.0. when i open this pdf file in Adobe reader (windows), by default its open with zoom fit width
.
What I need pdf file open with default zoom to page level
.
My try:
Set zoom level at 100.
PDPageXYZDestination dest = new PDPageXYZDestination();
dest.setPage(pagea);
dest.setZoom(1);
dest.setTop(new Float(PDRectangle.A4.getHeight()).intValue());
PDActionGoTo action = new PDActionGoTo();
action.setDestination(dest);
document.getDocumentCatalog().setOpenAction(action);