+ Reply to Thread
Results 1 to 6 of 6

Thread: Extracting vector objects from a PDF with Inkscape

  1. #1
    Hero999 Excellent Hero999 Excellent Hero999 Excellent Hero999 Excellent Hero999 Excellent Hero999 Excellent Hero999 Excellent Hero999 Excellent Hero999 Excellent Hero999 Excellent
    Join Date
    Apr 2006
    Location
    England
    Posts
    11,826

    Extracting vector objects from a PDF with Inkscape

    Before you start this I assume you've downloaded Inkscape.

    Open the PDF file in Inkscape.

    A dialogue will be displayed asking you which page you want to import along with a few other options. Leave the other options as the defaults and select the page with the object on which you want to extract. Click Ok and the page will appear in the editing space.

    In the example attached I extracted page 5 of the 7555 datasheet, ungrouped (right click the object and click ungroup) it and deleted all the objects except for the internal schematic.

    Select save a copy as from the file menu and save it in a format your word processor can import, for example if you have MS Word save it as a .EMF file or you could just save it as a .PDF straight away.

    Open your word processor (I have OpenOffice but it works for MS Word) and import the picture with the insert picture command.

    If you have any questions I'll post some pictures.

    Note:
    The PDF import isn't perfect, if the text looks funny this can sometimes be remedied by selectring the text and clicking on 'Remove manual kerns' in the text menu.

    The EMF and PDF export aren't perfect either, if it's possible save in SVG or print using PDF Creator.
    Attached Files

    I do not answer private messages asking for help because no one else can: benefit from advice I may give or correct me if I'm wrong.

    Please ask on the open forum if you have a question and I'll be happy to help,
    if I know the answer.


  2. #2
    Mikebits Excellent Mikebits Excellent Mikebits Excellent Mikebits Excellent Mikebits Excellent Mikebits Excellent Mikebits Excellent
    Join Date
    May 2008
    Location
    San Diego, Ca
    Posts
    3,842
    Blog Entries
    2

    I think it is very nice that you went through all the effort to share some useful knowledge.

    But I think there is an easier way. With a screen capture tool that allows you to select the area you wish to copy, you can capture the image in one mouse drag and insert into word. Image is perfectly readable. I used Paintshop for this example, but any software that has a screen grab should work. As you said doc file can be saved as pdf with PDFcreator.
    Attached Files
    Pay it forward.
    www.geoepicenter.com

  3. #3
    3v0
    3v0 is offline
    3v0 Excellent 3v0 Excellent 3v0 Excellent 3v0 Excellent 3v0 Excellent 3v0 Excellent 3v0 Excellent 3v0 Excellent 3v0 Excellent 3v0 Excellent 3v0 Excellent
    Join Date
    Jul 2006
    Location
    USA
    Posts
    6,399
    Blog Entries
    11

    I found the ability to crop out a bit of a pdf interesting.

    If the image to be croped is a pdf and you want a non raster
    image, adobe reader has a snapshot tool that lets you cut and
    save a portion of the image. Since the pdf is a vector image
    you can scale it up prior to talking the snapshoot to any resolution
    you need to get a crisp clear image.

    3v0
    Please post questions to the forums. PM's are for personal communication.

    BCHS/3v0's Tutorials
    Junebug USB PIC programmer kit., USB Bit Whacker,
    The 15 Minute Printed Circuit Board! (+drill time)

  4. #4
    Hero999 Excellent Hero999 Excellent Hero999 Excellent Hero999 Excellent Hero999 Excellent Hero999 Excellent Hero999 Excellent Hero999 Excellent Hero999 Excellent Hero999 Excellent
    Join Date
    Apr 2006
    Location
    England
    Posts
    11,826

    Quote Originally Posted by Mikebits View Post
    I think it is very nice that you went through all the effort to share some useful knowledge.

    But I think there is an easier way. With a screen capture tool that allows you to select the area you wish to copy, you can capture the image in one mouse drag and insert into word. Image is perfectly readable. I used Paintshop for this example, but any software that has a screen grab should work. As you said doc file can be saved as pdf with PDFcreator.
    I know about the capture tool which isn't very good because it converts it into a raster image which is hard to edit and will become blury when scaled up. Inskape is better because it extracts the image in a vector format which is smaller and has the advantage of being easilly editable and scaleable.

    Zooming in on your Word document causes it to go blury because it's raster, mine stays sharp because it's vector and takes up less disk space.

    Quote Originally Posted by 3v0
    Since the pdf is a vector image
    you can scale it up prior to talking the snapshoot to any resolution
    you need to get a crisp clear image.
    The problem with that is that a large image takes up lots of memory and there's still the fact that can be harder to edit than a vector.
    Attached Images
    Last edited by Hero999; 28th October 2008 at 02:18 PM.

    I do not answer private messages asking for help because no one else can: benefit from advice I may give or correct me if I'm wrong.

    Please ask on the open forum if you have a question and I'll be happy to help,
    if I know the answer.

  5. #5
    Mikebits Excellent Mikebits Excellent Mikebits Excellent Mikebits Excellent Mikebits Excellent Mikebits Excellent Mikebits Excellent
    Join Date
    May 2008
    Location
    San Diego, Ca
    Posts
    3,842
    Blog Entries
    2

    If you plan to edit the image such as add a symbol or such, then I agree with what you are saying, but for general cut and paste, the copy tool is fast, and if you want to scale up in size, good photo tools have a resample feature. For my important image jobs I use Photoshop, but for simple work I can also use Paintshop Pro. The vector tool I use is Smartdraw, not the best but it is ok. I might take a look at inkscape. The price is right
    Pay it forward.
    www.geoepicenter.com

  6. #6
    Boncuk Excellent Boncuk Excellent Boncuk Excellent Boncuk Excellent Boncuk Excellent Boncuk Excellent Boncuk Excellent
    Join Date
    Nov 2007
    Location
    Phetchabun,Thailand
    Posts
    3,302

    The example shows a relatively small circuit, already clearly to be seen slightly blurred. (similar to TI-data sheets)

    How about a full schematic of DIN-A4 size?

    I guess you'd be better off using Inkscape, not more work than cutting and pasting.

    Hans
    Proper Planning Prevents Piss Poor Performance

+ Reply to Thread

Similar Threads

  1. Have any of you tried Inkscape?
    By Hero999 in forum Chit-Chat
    Replies: 2
    Latest: 26th September 2008, 09:12 PM
  2. Objects of desire
    By tansis in forum General Electronics Chat
    Replies: 0
    Latest: 3rd November 2004, 08:37 PM
  3. Regarding vector calculus
    By shermaine in forum General Electronics Chat
    Replies: 0
    Latest: 29th April 2004, 10:07 AM
  4. Vector Impedance Meter
    By Oluvision in forum Electronic Projects Design/Ideas/Reviews
    Replies: 1
    Latest: 23rd January 2004, 03:45 AM
  5. To control speed of motor by distance of 2 objects
    By ahkumm in forum Electronic Projects Design/Ideas/Reviews
    Replies: 1
    Latest: 28th October 2002, 11:07 AM

Tags for this Thread