Other Ångström tips

Xpdf by default only contains zoom levels of 100%, 125%, 150%, 200%, and 400%.

You can change this and compile xpdf with your levels of zoom, subject to some limitations, in the following way.

Edit xpdf-3.02/xpdf/XPDFViewer.cc

Starting at line 141, you'll see the following text:

static ZoomMenuInfo zoomMenuInfo[nZoomMenuItems] = { { "400%", 400 }, { "200%", 200 }, { "150%", 150 }, { "125%", 125 }, { "100%", 100 }, { "50%", 50 }, { "25%", 25 }, { "12.5%", 12.5 }, { "fit page", zoomPage }, { "fit width", zoomWidth } };

Edit the list, and input the zoom levels, you desire. If increase the count of zoom levels, originally at 10, you have to also edit one more file, or compilation will fail with the error that the ZoomMenuItems number is too big. Therefore, just if you've increased the number of zoom levels, edit xpdf-3.02/xpdf/XPDFViewer.h and change
#define nZoomMenuItems 10
to the number necessary.

Then compile.

When you run xpdf, you'll have then your custom zoom levels to choose from the menu in the application


.