Inkscape.org
Beginners' Questions import layered pdf
  1. #1
    YvonDeRidder YvonDeRidder @YvonDeRidder

    Hi. I work wit sewing pattern in PDF. Is there a option to import a layered PDF in Inkscape and save the layers? I only can import or open it as 1 layer. TIA

  2. #2
    Polygon Polygon @Polygon🌶

    I´m not sure how to generate a PDF with layers to be honest - with stacked objects yes - but layers? Which programs generates this kind of PDF?

    For example: in Affinity Designer objects are drawn per layer - Export to PDFx4 comes in with separated objects in Inkscape.

    Can you provide such a "layered" PDF example to check?

  3. #3
    YvonDeRidder YvonDeRidder @YvonDeRidder
    *

    Yes, this is a projector file I use. (it is not a free file ;-)

  4. #4
    Polygon Polygon @Polygon🌶

    Got it - you can take it down.

     Well - from what I see it´s sorted by groups - not layers - and not organised in a strategically way what I would expect to quick hide  things you don´t what to see for example. So I´m a bit clueless how to optimise a workflow from this other then copy&paste what you need for one session into a new file.

  5. #5
    Polygon Polygon @Polygon🌶

    Really hard to get to the important things:

    Looking the same in Affinity Designer by the way.

     

  6. #6
    YvonDeRidder YvonDeRidder @YvonDeRidder

    Dear Polygon,

    Thank you for trying. I'm sure I wil figure something out but for now I know it's not my lack of knowledge.

  7. #7
    Polygon Polygon @Polygon🌶

    I think this PDF is just made for printing purposes and not meant to be edited any further for other needs - unfortunately.

  8. #8
    Tyler Durden Tyler Durden @TylerDurden

    It might not be so bad, a look into g782 might reveal more.

    Please share the pdf again.

  9. #9
    YvonDeRidder YvonDeRidder @YvonDeRidder
    *

    Dear Tyler. Thank you for trying. Here is the file again. And could you please explain how I can find a certain object?

     

  10. #10
    Tyler Durden Tyler Durden @TylerDurden

    Thank you for the file. I will not share it with anyone other than forum members wishing to solve the issue.

    As PolyPixel notes, PDF files are for distribution/printing, not so good for editing. Technically, PDFs can have layers, but this one does not.

    That said, the file can be picked apart to get the individual elements by color. This is not trivial in the case of this pdf, which uses many "clipping objects" that interfere with a simple "select same color" operation.

    I will explore workflows with file later today. You can remove the file, but others may ask to take a crack at it.

  11. #11
    Tyler Durden Tyler Durden @TylerDurden

    The individual sizes can be isolated to layers or new documents. Attached is the purple size in a standalone file.

    The method I used for extracting is a multi-step process:

    • Deep ungroup extension on all objects, then save as svg and close.
    • Open the file in a text editor and delete the "clip path" objects in the document's Defs region. (save and close)
    • Open the file in Inkscape.
    • Create a new layer e.g. "Purple".
    • Select a purple object, noting if the fill or stroke is colored, then use Edit>Select Same> Stroke (or fill) color.
    • Cut objects from page.
    • Select/activate Purple layer and Paste-in-place (Ctril+Alt+V). 
    • Repeat for all objects with purple fill or stroke, until all purple objects are moved from the original layer to the layer "Purple".

    Repeat for each color.

     

     

     

    Purple18 Td
  12. #12
    YvonDeRidder YvonDeRidder @YvonDeRidder

    Dear Tyler. Thnx for taking the time to look into this issue! I will certainly try this. Will report here my results. Thnx again!