Inkscape.org
Beyond the Basics Grid alignment issues when converting from svg to pdf
  1. #1
    Jaide Jaide @jaide
    *

    I'm building a grid generator at https://github.com/jaidetree/grid-generator

    While I'm happy with the designs for now, there is a niggle of an issue where after exporting a svg (see attached) to pdf, the visible grids and elements don't stay aligned. I'm on Mac OS and iPad OS and can reproduce the issue in preview and Good Notes 6 where I'm working with the PDFs. 

    I've attached a generated svg, the resulting pdf, and a screenshot of the issue.

    I'm hoping someone has some export settings in mind to improve the pdf exports. Alternatively, I could rewrite my project to generate the PDFs but I rather like the current pipeline and would rather not have to start over.

    If you look at the last image, the uploaded version of the issue, you can see the following:

    • The dot grid is not aligned to the base grid (16x16)
    • The base grid is not aligned to the sub grid (8x8)
    • The boxes and note section lines are not aligned to any of the grids

    If I zoom in or out, then pan around it will sometimes be correct, but too finicky to be ideal.

    Any ideas how to improve those pdf exports?

    Img 0298
    Day 2024 02 12
  2. #2
    Tyler Durden Tyler Durden @TylerDurden

    The attached PDF looks good here in Adobe Reader (windows). JFYI, Adobe has a setting for fine lines that can make things look off sometimes, depending on zoom level.

     

    Acrobat 20240212221937
  3. #3
    Jaide Jaide @jaide

    Well that's interesting! Looks off in web browsers too 

    Img 0304
  4. #4
    Tyler Durden Tyler Durden @TylerDurden

    Ja, looks like some renderers don't handle patterns so well. You might need to generate the grids & dots instead of the pattern fill.

  5. #5
    Jaide Jaide @jaide

    Afraid of that, but worth a shot. I take it there's no export option, inkscape function or cli argument to have inkscape "detile" the pattern?

Inkscape Inkscape.org Inkscape Forum Beyond the Basics Grid alignment issues when converting from svg to pdf