farling42 / fvtt-pdf-pager

PDF Pager for Foundry
MIT License
6 stars 4 forks source link

Editable Actorsheets with 90deg rotatet fields #49

Closed STBaf closed 1 year ago

STBaf commented 1 year ago

Seems PDF Pager uses the Foundry build-in mozilla library for displaying PDF in a browser which is, sadly, a little outdated as it seems and is not able to show editable PDF fields which are 90 degree rotated. That was a known problem which is already solved.

Since this is the case, a editable Actor sheet out of a PDF with rotated fields can not be used correctly in Foundry. This was a error I already encountered under v9 with PDFJournal (see https://github.com/Djphoenix719/PDFoundry/issues/111 ).

Maybe you will be able to help us out with that and use a newer/latest pdf.js that is able to display rotated fields in PDF :)

farling42 commented 1 year ago

Maybe you should raise this as a feature request in core Foundry, and they might be able to update the version of pdfjs in Foundry V11. My module will always use the Foundry supplied version of pdfjs. On 22 Jan 2023 12:07, STBaf @.***> wrote: Seems PDF Pager uses the Foundry build-in mozilla library for displaying PDF in a browser which is, sadly, a little outdated as it seems and is not able to show editable PDF fields which are 90 degree rotated. That was a known problem which is already solved. Since this is the case, a editable Actor sheet out of a PDF with rotated fields can not be used correctly in Foundry. This was a error I already encountered under v9 with PDFJournal (see Djphoenix719/PDFoundry#111 ). Maybe you will be able to help us out with that and use a newer/latest pdf.js that is able to display rotated fields in PDF :)

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.***>

STBaf commented 1 year ago

Ok, thanks. Will try! 👍

farling42 commented 1 year ago

If you want to try a later version of the pdfjs library, I've created some simple instructions on how to patch your Foundry server to do this. Have a look at https://github.com/farling42/fvtt-pdf-pager/wiki/Using-a-later-version-of-the-PDFJS-library if you are interested.