maxio icon indicating copy to clipboard operation
maxio copied to clipboard

Notebook export shifts drawing with respect to background

Open m-weigand opened this issue 7 years ago • 4 comments
trafficstars

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

m-weigand avatar Feb 08 '18 16:02 m-weigand

Yes, sounds sensible. Dependencies check is meaningful anyway.

edupont avatar Feb 11 '18 00:02 edupont

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.

trou avatar Feb 19 '18 16:02 trou

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

florian-wagner avatar Feb 19 '18 16:02 florian-wagner

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.

trou avatar Feb 19 '18 16:02 trou