blocksuite icon indicating copy to clipboard operation
blocksuite copied to clipboard

bug: export as a pdf file!

Open millet0328 opened this issue 2 years ago • 5 comments

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?

  • [ ] Yes

Relevant log output

No response

Anything else?

No response

millet0328 avatar Mar 31 '24 11:03 millet0328

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!

graydawnc avatar Apr 08 '24 01:04 graydawnc

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

millet0328 avatar Apr 09 '24 02:04 millet0328

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.

fourdim avatar Apr 30 '24 02:04 fourdim

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.

millet0328 avatar May 06 '24 01:05 millet0328

Same problem, using AFFINE windows client.

yashkolambekar avatar May 09 '24 04:05 yashkolambekar