Inkscape.org
Beginners' Questions white lines appear on PDF imported into Inkscape
  1. #1
    melaniel melaniel @melaniel

    I am working in Inkscape v1.0.1 on a macOS Catalina. I have a PDF image (Input.pdf) and a PNG image that I want to import in Inkscape, add text to, and then export as a single PDF image (Output.pdf).

    When I import Input.pdf into Inkscape, thin horizontal white lines appear across the map, and they seem to appear/disappear depending on how much you zoom in (see Project.svg). If I export from Inkscape as a PNG, I do not see the white lines (Output.png), but I need a PDF. When I export the completed project as a PDF and then open Output.pdf in Mac Preview, I still see the horizontal white lines, and they still appear/disappear and move around depending on how much you zoom in. If I open Output.pdf in Adobe Reader, I do not see the white lines. I need to be able to submit this as a PDF as part of a manuscript upload, so I cannot control how the people on the receiving end open the PDF, and therefore need to do everything in my power to make sure it looks right.

    I need this file to be in PDF format that is viewable on-screen (not just in print). I have searched in this forum and in google, and I cannot find anyone talking about this exact problem. The closest problem I can find is talking about fixing white gaps between objects, but that's not my problem.

    I emailed the Output.pdf to several other people - some of them see the white lines, and others do not, and this does not seem to relate to OS.

    Has anyone experienced this problem before? I can't imagine I'm the first to encounter this issue, but I cannot seem to find any existing posts asking for help related to this. Is there something different I need to do when importing Input.pdf into Inkscape? Is there something different I can when exporting the final Output.pdf? 

    Thanks in advance for any suggestions.

    Project
    Output
  2. #2
    Tyler Durden Tyler Durden @TylerDurden

    The artifact is a unfortunate result of the satellite image background being a series of tiled bitmap images, and using a PDF as source material. (PDF is intended to be a release/distribution format.)

    That said, the tiled images can be reproduced in Inkscape as a single image and the tiles can be discarded. It takes a bit of fiddly work, but if the result is acceptable, I'll outline the process.

    Examine the attached pdf and chime back.

  3. #3
    melaniel melaniel @melaniel

    That product looks good to me! Yes, if you wouldn't mind outlining what you did so I can repeat those steps in the future, that would be great. Thanks!

  4. #4
    Tyler Durden Tyler Durden @TylerDurden
    *

    To eliminate the white lines, I used these steps:

    Open Project.svg

    Open Menu: Object>Objects (docked list on right)

    1. Select the group containing the images (g1101 inside Figure3_bottomhalf).
    2. Use Menu: Edit>Make a bitmap copy (Alt+B). (This creates a single image exactly in front of the group of images.)
    3. Delete g1101.
    4. Clean Document

    Save the SVG for editing and save a COPY as PDF for release.

     

    (Images are in reverse order.)

    Cleandocument
    Step2Result
    Step2
    Step1
  5. #5
    Tyler Durden Tyler Durden @TylerDurden

    NB in the Preferences dialog, bitmap quality is set to 300, for good print quality.

    Bitmapquality
  6. #6
    melaniel melaniel @melaniel

    Thank you! I was able to recreate the process. Last question out of curiosity - what does "clean up document" do?

  7. #7
    Tyler Durden Tyler Durden @TylerDurden
    👍

    The command File →  Clean up document removes unused definitions from the <defs> section of the SVG file. This includes things like unused gradients, patterns, markers, and filters.

    http://tavmjong.free.fr/INKSCAPE/MANUAL/html/File-Vacuum.html

     

Inkscape Inkscape.org Inkscape Forum Beginners' Questions white lines appear on PDF imported into Inkscape