toeverything / blocksuite

🧩 Content editing tech stack for the web - BlockSuite is a toolkit for building editors and collaborative applications.
https://blocksuite.io
Mozilla Public License 2.0
4.37k stars 398 forks source link

bug: export as a pdf file! #6663

Open millet0328 opened 6 months ago

millet0328 commented 6 months ago

What happened?

in the example file,when you switch to web model,export the example file as a pdf file! in the result, the pdf file can not center display all texts! Write, Draw, Plan all at Once..pdf

Distribution version

Web (app.affine.pro)

What browsers are you seeing the problem on if you're using web version?

Chrome

Are you self-hosting?

Relevant log output

No response

Anything else?

No response

donteatfriedrice commented 5 months ago

The problem cannot be reproduced in the latest affine.fail, and insider.affine.pro. Could you please provide more detailed reproduction steps, such as a video? Thanks!

millet0328 commented 5 months ago

The problem cannot be reproduced in the latest affine.fail, and insider.affine.pro. Could you please provide more detailed reproduction steps, such as a video? Thanks!

My computer screen is 1920*1080。I make a video with all steps。

https://github.com/toeverything/blocksuite/assets/16486372/7c756c58-d98c-479e-b7be-d7edf0f2f0d2

fourdim commented 5 months ago

Can confirm, it's because database's width varies at a special aspect ratio (roughly 2:1).

@millet0328 I would recommend you to use AFFiNE client for pdf export, which is using a different but more reliable native rendering engine. This engine, pdf export inside the browser, relies on a third-party dependency that is no longer maintained. For now, we have no clue why this bug happens.

millet0328 commented 5 months ago

Can confirm, it's because database's width varies at a special aspect ratio (roughly 2:1).

@millet0328 I would recommend you to use AFFiNE client for pdf export, which is using a different but more reliable native rendering engine. This engine, pdf export inside the browser, relies on a third-party dependency that is no longer maintained. For now, we have no clue why this bug happens.

thanks for your response.

yashkolambekar commented 4 months ago

Same problem, using AFFINE windows client.