documentViewer ignores start page

Community Driven Extensions Project
Post Reply
raho
Posts: 27
Joined: 05 Feb 2016, 21:08

11 Oct 2022, 15:46

Hello!

I want to show streamed content in documentViewer starting with page one but the viewer always shows the last page of the streamed content!

Code: Select all

<pe:documentViewer page="1" value="#{dokumentPreviewController.content}" .../>
The toolbar of documentViewer for the page information is rendered like this:

Code: Select all

<input type="number" id="pageNumber" class="toolbarField pageNumber" title="Seite" value="1" size="4" min="1" tabindex="15" data-l10n-id="page" autocomplete="off" max="2">
<span id="numPages" class="toolbarLabel">von 2</span>
So the value of the input is 1 but my page shows 2 ?!

Any idea?

Probably for streamed content always the last page is shown?!
PF 12.0.4
WildFly 23.0.2.Final

Melloware
Posts: 3717
Joined: 22 Apr 2013, 15:48

11 Oct 2022, 16:20

That is probably a symptom of streaming the document it can't tell what page is what? I have never actually streamed I have only sent it fully done PDF docs from my backend.
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1

Post Reply

Return to “Extensions”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 6 guests