Changing the Maximum Page Limit for PDF Downloads.

January 18, 2016 | KB: 1011039
WebLink 7, WebLink 8, WebLink 9

Summary

By default, WebLink 7 and WebLink 8.0.x limit PDF downloads to 75 pages. WebLink 8.2 and WebLink 9 limits PDF downloads to 300 pages. This limit can be changed by modifying the DocView.aspx page.

More Information

By default, documents downloaded as PDFs are limited to the default page limit. If you are using Weblink 7 or WebLink 8.0.x and you download a document containing more than 75 pages as a PDF, only the first 75 pages of the document will be included in the downloaded PDF. WebLink 8.2 and WebLink 9 will give you the first 300 pages by default. This maximum page length can be raised or lowered by modifying the DocView.aspx file.

Note: This setting only affects PDFs created through WebLink by clicking the Download PDF icon. This setting has no relation to the length of PDFs stored as electronic documents in Laserfiche.

Resolution

Modify the MaximumSize attribute on the PDFToolbar control or PdfDialog8 control to set the page limit for PDF downloads.

To change the WebLink 9 PDF page download limit

  1. From a text editor, open the DocView.aspx file. This file is located in the Web Files folder of the WebLink 9 installation folder. The default location is C:\Program Files\Laserfiche\WebLink\Web Files.
  2. Locate the following line:
  3. <weblink:PdfDialog8 id=PdfDialog runat=server Print="true" />

  4. Edit the line to add "MaximumSize=N", where N is the desired PDF page download limit. When this has been added, the line should look like the following:
  5. <weblink:PdfDialog8 id=PdfDialog runat=server Print="true" MaximumSize=N />

  6. Save DocView.aspx.

To change the WebLink 8 PDF page download limit

  1. From a text editor, open the DocView.aspx file. This file is located in the Web Files folder of the WebLink 8 installation folder. The default location is C:\Program Files\Laserfiche\WebLink 8\Web Files.
  2. Locate the following line:
  3. <weblink:PdfDialog8 id=PdfDialog runat=server />

  4. Edit the line to add "MaximumSize=N", where N is the desired PDF page download limit. When this has been added, the line should look like the following:
  5. <weblink:PdfDialog8 id=PdfDialog runat=server MaximumSize=N />

  6. Save DocView.aspx.

To change the WebLink 7 PDF page download limit

  1. From a text editor, open the DocView.aspx file. This file is located in the Web Files folder of the WebLink 7 installation folder. The default location is C:\Program Files\Laserfiche\WebLink 7\Web Files.
  2. Locate the following line:

    <weblink:pdftoolbar class="PDFToolbar" id="ThePDFToolbar" runat="server">

  3. Edit the line to add "MaximumSize=N", where N is the desired PDF page download limit. When this has been added, the line should look like the following:

    <weblink:pdftoolbar class="PDFToolbar" id="ThePDFToolbar" runat="server" MaximumSize = N>

  4. Save DocView.aspx.