Marcelh1983 / document-viewer

MIT License
51 stars 28 forks source link

How can I keep the page on file reload? #33

Closed gerarytoti closed 2 years ago

gerarytoti commented 2 years ago

Hello,

I'm using ngx-doc-viewer to render DOCXs. My system is being rendered with information introduced in real time within a form. I would like to keep the page where I was before introducing new information. Currently, I got to the first page each time I render the document.

Any idea? any component property to do this?

Marcelh1983 commented 2 years ago

What viewer do you use? If you use google or office it won't be possible I think. You probably even are not allowed to do something with the scroll position of the iframe.

If you use the mammoth viewer. You could do something like that. But it probable still be a hacky solution because the whole document is re-rendered.


From: gerarytoti @.> Sent: Tuesday, November 16, 2021 17:08 To: Marcelh1983/document-viewer @.> Cc: Subscribed @.***> Subject: [Marcelh1983/document-viewer] How can I keep the page on file reload? (Issue #33)

Hello,

I'm using ngx-doc-viewer to render DOCXs. My system is being rendered with information introduced in real time within a form. I would like to keep the page where I was before introducing new information. Currently, I got to the first page each time I render the document.

Any idea? any component property to do this?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/Marcelh1983/document-viewer/issues/33, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAZB5JNJB5N37ZVPHLP2MGLUMKFY5ANCNFSM5IEZMTBA. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

gerarytoti commented 2 years ago

Thanks!