View Component 25.2
View Component Help

# PageRestriction

The pages of a PDF document to return.

This option is available only when you use the pdf2sr reader for PDF documents, and when the LegacyRendering configuration parameter is set to `False`.

You set page restriction to a comma-separated list of the pages that you want to return from the PDF that you specify in the Reference parameter.

For example:

    action=View&Reference=mydocument.pdf&PageRestriction=1,2,7,9-12

This example returns pages 1, 2, 7, 9, 10, 11 and 12 of the specified PDF, in that order.

View sorts and deduplicates the page restriction before it applies it internally, so that pages always return in sorted and deduplicated order. Page restrictions must be positive integers. View returns an error if a page number used in the restriction exceeds the number of pages in the PDF document.

When you request the same document with different page restrictions, View treats these as separate jobs for caching purposes.

The `PageRestriction` parameter has no effect if the Reference does not point to a PDF document (that is, for non-PDF documents, View renders and returns the document in full, as before).

Actions: | View
Type: | String
Default: |
Example: |
    PageRestriction=1,2,7,9-12
This example returns pages 1, 2, 7, 9, 10, 11, and 12, in that order.
See Also: | Reference LegacyRendering configuration parameter

Copyright 2025 Open Text
Version 25.2 | Last updated April 2025

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to MFI-swpdl.idoldocsfeedback@opentext.com.

We appreciate your feedback!

Product: Knowledge Discovery View Component 25.2

Topic Title: PageRestriction