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

Notebook export shifts drawing with respect to background #11

Open
m-weigand opened this issue Feb 8, 2018 · 4 comments
Open

Notebook export shifts drawing with respect to background #11

m-weigand opened this issue Feb 8, 2018 · 4 comments

Comments

@m-weigand
Copy link
Contributor

Just tested the exportNotebook function. At this point the drawing layer is shifted with respect to the background (see attached figures).

Note that this does not happen with the rM2svg version developed here:

https://github.com/phil777/maxio/tree/master/tools

I see that this approach requires far more (or heavy?) dependencies (poppler, cairo). So I propose to add both versions of rM2svg to the repository and let the user switch (perhaps based on a dependency check?). Would you be willing to merge something like that?

Work-progress-work can be found here:

https://github.com/m-weigand/maxio/tree/svgCairo

Test output using rM2svg_cairo:

cairo.pdf

Test output using rM2svg in this repository:

convert.pdf

@edupont
Copy link
Member

edupont commented Feb 11, 2018

Yes, sounds sensible. Dependencies check is meaningful anyway.

@trou
Copy link
Contributor

trou commented Feb 19, 2018

note that @phil777's approach is not perfect either and pull request #12 does not fix the problems.

Unfortunately, I can't spend more time debugging this.

@florian-wagner
Copy link
Contributor

@trou Could you explain in more detail, which problems remain after #12?

@trou
Copy link
Contributor

trou commented Feb 19, 2018

See the following files:

As you can see in dot-paper-master.pdf, the absolute position of the drawings looks correct, the text is right on the margin. However, the lines are supposed to be on dots, as seen on @phil777 version, which looses the text on the right.

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

4 participants