Skip to main content

Saving Pages

If you want to enable users to download a file related to the displayed page, the current section or the entire document, you can enable the save options by setting the FSI Pages parameter Save to true.

Exampler:
// In the configuration file:
<Pages>
<Save value="true" />
<SaveResolution value="1024" />
</Pages>

// Directly in the tag :
<fsi-pages dir="..." save="true" ...></fsi-pages>

This adds a Save button to the menu bar. Clicking the button displays the Save dialog of FSI Pages. Without any additional preparation this allows users to download an image of the left or right page or of both.

After the user has chosen an option and clicks the Save button in the dialog, FSI Pages downloads the required image data (pixel data) from the imaging server.

You can limit the resolution used for downloading using the FSI Pages parameter SaveResolution.

You can additionally pass effect parameters SaveEffects to colorize, pixelize or sharpen the image or to specify the image compression.

Saving a complete PDF

In addition to downloading images you might want to enable users to download the complete source PDF document. This documentation refers to PDF documents only, but you can also provide other file types for download.

Enabling this option is as easy as adding the FSI Pages parameter SaveDocumentFile, providing the absolute URL to a PDF document to download.

Exampler:
// In the configuration file:
<Pages>
<Save value="true" />
<SaveResolution value="1024" />
<SaveDocumentFile value="https://foo.com/file.pdf" />
</Pages>

// Directly in the tag :
<fsi-pages save="true" savedocumentfile="https://foo.com/file.pdf"></fsi-pages>