To change the initial magnification settings when opening PDF documents in Qoppa’s PDF components and ignore the magnification settings contained in the PDF document (if any), make the following method calls immediately after instantiating the PDF bean, before opening any PDF document:

Set a Fit To Width Magnification:
Display with the page magnified just enough to fit the entire width of the page within the window.

pdfNotesBean = new PDFNotesBean();
pdfNotesBean.getInitialViewSettings().setMagnification(IPDFDocument.MAGNIFICATION_FIT_WIDTH);
pdfNotesBean.getInitialViewSettings().setOverrideMagnification(true);

Set a Fit To Page Magnification:
Display with the page magnified just enough to fit the entire page within the window both horizontally and vertically.

pdfNotesBean = new PDFNotesBean();
pdfNotesBean.getInitialViewSettings().setMagnification(IPDFDocument.MAGNIFICATION_FIT_PAGE);
pdfNotesBean.getInitialViewSettings().setOverrideMagnification(true);

Set a Fit Actual Magnification (100%) :
Display the page with 100% magnification.

pdfNotesBean = new PDFNotesBean();
pdfNotesBean.getInitialViewSettings().setMagnification(IPDFDocument.MAGNIFICATION_FIT_ACTUAL);
pdfNotesBean.getInitialViewSettings().setOverrideMagnification(true);

Set a Given Magnification / Zoom Level:
Display the page with 125% magnification. Only will be set if the string value is interpreted as a number greater or equal to 10.

pdfNotesBean = new PDFNotesBean();
pdfNotesBean.getInitialViewSettings().setMagnification("125");
pdfNotesBean.getInitialViewSettings().setOverrideMagnification(true);

To interpret the string for the magnification / zoom level as a double, our code uses the following Java method:

Double valueOf(String s)

The String value can not be localized, i.e, this will work:

pdfNotesBean = new PDFNotesBean();
pdfNotesBean.getInitialViewSettings().setMagnification("125.5");
pdfNotesBean.getInitialViewSettings().setOverrideMagnification(true);

But this will NOT work:

pdfNotesBean = new PDFNotesBean();
pdfNotesBean.getInitialViewSettings().setMagnification("125,5");
pdfNotesBean.getInitialViewSettings().setOverrideMagnification(true);