Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PDF export defaults with margin #1703

Open
PeterHagen opened this issue Oct 17, 2023 · 3 comments
Open

PDF export defaults with margin #1703

PeterHagen opened this issue Oct 17, 2023 · 3 comments

Comments

@PeterHagen
Copy link

Expected behavior

When exporting to a PDF, with margin's set to 0, the entire drawing should be visible on the exported page. This works as expected in 2.2.0.2.

Observed behavior

With version Version: 2.2.1_alpha-301-gd3985b6c (and earlier, but lost track), a margin is always added to the exported PDF

A print preview:

Screenshot 2023-10-17 at 21 08 57

The exported pdf:

Screenshot 2023-10-17 at 21 09 25

Steps to reproduce or sample file

  1. open the dxf
  2. check the print preview
  3. export to pdf

test.pdf
test.dxf.zip

Operating System and LibreCAD version info

MacOS 14.0 (23A344)
LibreCad 2.2.1_alpha-301-gd3985b6c (build from source for M1)

@PeterHagen
Copy link
Author

Does anyone have an idea how to solve this? This bug prevents me to use any new version of Librecad

@dellus
Copy link

dellus commented Jan 15, 2024

I have no knowledge about MacOS, but for me in Windows this happens as automatically the physical print margins of the default printer are applied. To circumvent this I have a pdf - printer (just software) set as default printer. If there is something like that for MacOS you could try that.

@PeterHagen
Copy link
Author

That could be a solution, but then the implementation of the export to pdf is not what I expect it to be. Export to PDF should not use settings of a printer, it should create a file that is independent of any printer. That is what PDF is for.

It does work in the older version 2.2.0.2, which is an Intel version. I would prefer to use the Arm version, but some bugs and specially this export issue restrain me of using them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants