[
https://issues.apache.org/jira/browse/TIKA-4860?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18109536#comment-18109536
]
Dominik Schmidt commented on TIKA-4860:
---------------------------------------
One thing that shifts the question: PR #3096 (TIKA-4856) adds
`maxRenderedPages` to PDFParserConfig, honoured by both strategies, because a
thumbnail wants the first page rendered and the whole text extracted. With that
knob `maxPages` can stay a text limit, and this ticket would just be the
documentation.
> PDF RENDER_PAGES_BEFORE_PARSE ignores maxPages
> -----------------------------------------------
>
> Key: TIKA-4860
> URL: https://issues.apache.org/jira/browse/TIKA-4860
> Project: Tika
> Issue Type: Bug
> Reporter: Dominik Schmidt
> Priority: Major
>
> With "imageStrategy": "RENDER_PAGES_BEFORE_PARSE" the PDF parser renders
> every page (PageRangeRequest.RENDER_ALL) even when maxPages limits the parse;
> RENDER_PAGES_AT_PAGE_END honours it. A 10-page PDF with maxPages: 1 renders
> 10 pages before parse and 1 page at page end. Either bound the pre-parse
> rendering by maxPages or document that maxPages only applies to text
> extraction.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)