RavishaHesh / PDFJsAnnotations

Wrapper for PDF JS to add annotations
MIT License
333 stars 99 forks source link

PDF file does not open #79

Open arpasdream opened 1 year ago

arpasdream commented 1 year ago

When i launch the index.html file on my local user, the pdf doesn't open. The application must run on server-side?

Screenshot 2023-08-11 at 12-32-05 PDF Annotation And Drawing Markup Plugin Example

RavishaHesh commented 1 year ago

Please check the developer console of the browser for any Javascript or network errors(Ex: cross-origin errors)

arpasdream commented 1 year ago

Ok thanks I solved... but how do i save the pdf with the same name as the pdf file i open? Thanks.

RavishaHesh commented 1 year ago

You can pass the filename into the savePdf method https://github.com/RavishaHesh/PDFJsAnnotations/blob/1b4946b095a713c7b7eda792b955b0deafc788e2/pdfannotate.js#L243

arpasdream commented 1 year ago

Hi and thanks, I would like the document to be saved to have the same name as the open pdf.

Il giorno mar 29 ago 2023 alle ore 08:53 Ravisha Heshan < @.***> ha scritto:

You can pass the filename into the savePdf method https://github.com/RavishaHesh/PDFJsAnnotations/blob/1b4946b095a713c7b7eda792b955b0deafc788e2/pdfannotate.js#L243

— Reply to this email directly, view it on GitHub https://github.com/RavishaHesh/PDFJsAnnotations/issues/79#issuecomment-1696871153, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKMN6M3Y4E3CH5KTKWMOSPDXXWGVFANCNFSM6AAAAAA3MXI5H4 . You are receiving this because you authored the thread.Message ID: @.***>

arpasdream commented 1 year ago

Hi, It's possible to save the generated pdf file in a specific folder? Thanks...

Il giorno mar 29 ago 2023 alle ore 08:53 Ravisha Heshan < @.***> ha scritto:

You can pass the filename into the savePdf method https://github.com/RavishaHesh/PDFJsAnnotations/blob/1b4946b095a713c7b7eda792b955b0deafc788e2/pdfannotate.js#L243

— Reply to this email directly, view it on GitHub https://github.com/RavishaHesh/PDFJsAnnotations/issues/79#issuecomment-1696871153, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKMN6M3Y4E3CH5KTKWMOSPDXXWGVFANCNFSM6AAAAAA3MXI5H4 . You are receiving this because you authored the thread.Message ID: @.***>

RavishaHesh commented 1 year ago

This doesn't support out-of-the-box. You should be able to achieve that by changing this line of the js

arpasdream commented 1 year ago

how should this line be modified?

Il giorno lun 4 set 2023 alle ore 14:22 Ravisha Heshan < @.***> ha scritto:

This doesn't support out-of-the-box. You should be able to achieve that by changing this https://github.com/RavishaHesh/PDFJsAnnotations/blob/1b4946b095a713c7b7eda792b955b0deafc788e2/pdfannotate.js#L273 line of the js

— Reply to this email directly, view it on GitHub https://github.com/RavishaHesh/PDFJsAnnotations/issues/79#issuecomment-1705175433, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKMN6M3K5OFVE4ZRNAKZ4QDXYXBWXANCNFSM6AAAAAA3MXI5H4 . You are receiving this because you authored the thread.Message ID: @.***>

arpasdream commented 1 month ago

Hi, it's possible to download the PDF as a original document uploaded and not as an image? Thanks...