Feature Wiki

Information about planned and released features

Tabs

Show Number of Pages of PDFs

1 Initial Problem

Currently PDF-Files already have preview-images and metadata such as the filesize. There is no way to find the number of pages in this PDF-File.

2 Conceptual Summary

Using the PreProcessors of the File Upload Service additional Metadata can be aggregated when uploading files. The number of Pages in PDF (and other file-types when supported by GhostScript). The metadata is only displayed for objects which have a Number of pages.
The implementation is done with GhostScript and will only be used when ILIAS is cinfigured to use GhostScript.

gs -q -dNODISPLAY -c "($PATH_TO_PDF) (r) file runpdfbegin pdfpagecount = quit";

3 User Interface Modifications

3.1 List of Affected Views

  • crs/view_content/view_content
    • Additional Information label in listview description
  • file/id_info
    • Additional row in file-infos

4 Technical Information

All technical information are already mentioned in "Conceptual Summary".

5 Contact

6 Funding

If you are interest in funding this feature, please add your name and institution to this list.

7 Discussion

As the Maintainer a highly support this FR. There are no technical difficulties and the genereal approach of Processors mentioned in File Upload Service will perfectly fit.

JourFixe, ILIAS [jourfixe], May 08, 2017: We highly appreciate this suggestion and schedule it for 5.3. We do not expect that existing pdf files are page counted. This should only be done for newly uploaded files (like known from 'Preview'). But please mention this in the 'Implemention' part of this feature wiki page.

8 Implementation

With GhostScript configured in ILIAS Setup, Uploading PDFs will count the number of pages and display it in lists and on info-page:

Test Cases

Test cases completed at {date} by {user}

  • C18820 : PDF - Seitenzahlen auslesen

Approval

Approved at 29.08.2017 by Amstutz, Timon [amstutz].

Last edited: 12. Feb 2018, 14:32, Schmid, Fabian [fschmid]