motla / vue-document-editor

:page_facing_up: Paper-sized WYSIWYG document editor for Vue apps
https://motla.github.io/vue-document-editor/
MIT License
312 stars 70 forks source link

Question about usage of others pagins format #31

Closed elvishuges closed 1 year ago

elvishuges commented 1 year ago

Describe the bug This is not a bug but a question abount usage of page formats. Im trying to use another pages format like A5, A5L,etc. it works in editor but, when i click in print, i know that the before_print function is called, the page only show in A4 format in printer viewer browser..do you know what is happining...and in what i can check out to make this work?

To Reproduce Steps to reproduce the behavior:

  1. go to editor
  2. click on Format menu
  3. Select a format lke a5l,a5,
  4. and i click in print and the browser only show the page in a4 form

as u can see bellow. the ditor show correctly the format. but in print the page dont appear in a5 format

printmarmelo1

after print click

image

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

motla commented 1 year ago

Hello Elvis,

To my knowledge we can't change the parameters of the print box of the navigator with JavaScript, so it has to be done manually by the user. Moreover Safari adds print margins automatically... 😬

I looked over solutions which could generate PDFs directly from HTML aside from the browser print boxes but I couldn't find one suitable for the project.

I know that sucks. If you find a solution let me know.

elvishuges commented 1 year ago

Hello. Have you met any editor similar to the document editor that divides the pages into a4 pages?


De: Romain Lamothe @.> Enviado: quinta-feira, 13 de julho de 2023 11:33 Para: motla/vue-document-editor @.> Cc: Elvis Huges @.>; Author @.> Assunto: Re: [motla/vue-document-editor] Question about usage of others pagins format (Issue #31)

Closed #31https://github.com/motla/vue-document-editor/issues/31 as not planned.

— Reply to this email directly, view it on GitHubhttps://github.com/motla/vue-document-editor/issues/31#event-9811973873, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AC5M4MMYO24LWZW3NQTV6VDXQABLFANCNFSM6AAAAAA2HSYGKM. You are receiving this because you authored the thread.Message ID: @.***>

motla commented 1 year ago

There are these solutions:

Collabora Online Development Edition (CODE) https://collaboraonline.github.io/ https://github.com/CollaboraOnline/online

OnlyOffice (commercial) https://www.onlyoffice.com/see-it-in-action.aspx?from=office-suite

elvishuges commented 1 year ago

thank u , friend !!


De: Romain Lamothe @.> Enviado: quinta-feira, 19 de outubro de 2023 17:33 Para: motla/vue-document-editor @.> Cc: Elvis Huges @.>; Author @.> Assunto: Re: [motla/vue-document-editor] Question about usage of others pagins format (Issue #31)

There are solutions but not free and open-source: https://www.collaboraoffice.com/code/ https://www.onlyoffice.com/see-it-in-action.aspx?from=office-suite

— Reply to this email directly, view it on GitHubhttps://github.com/motla/vue-document-editor/issues/31#issuecomment-1771664778, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AC5M4MLEODQMDFPKLI3MMD3YAGFAPAVCNFSM6AAAAAA2HSYGKOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONZRGY3DINZXHA. You are receiving this because you authored the thread.Message ID: @.***>