DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 1 of 1
  1. #1
    Join Date
    Oct 2005

    To read size of object content from .eps, .ai, or .jpeg format

    Please Help me

    I export from CorelDraw, Adobe, some selected content (size in cm) in .eps, .ai, or .jpeg format. With VB, How I can read width and leght of object content from this file format for use to calculate area of selected object (widht*leght).


    Example export a rectangle 140x50 cm size from CorelDraw file.
    In content open with Notepad, I found that information about size are in line content %%BoundingBox
    First two numbers (with - ) represent position from setup page in file (when the object are same size like page setup first two numbers are 0, 0). Number 2816 and 259 descriebe size of selection (in pixels I think).
    How I can read the line wich content BoundingBox (from a .eps or .ai format) and use to multiply last two numbers ?

    Line 3 from .eps format
    %!PS-Adobe-3.0 EPSF-3.0
    %%BoundingBox: -1153 -760 2816 659
    %%LanguageLevel: 1
    %%Creator: CorelDRAW 9
    %%Title: rectangle.eps
    %%CreationDate: Thu Oct 20 20:42:44 2005
    %%For: Rafael
    %%DocumentProcessColors: Cyan Yellow Black
    %%DocumentSuppliedResources: (atend)

    Line 5 from .ai format

    %%Creator: Adobe Illustrator™ 7.0 Exported from CorelDRAW 9.
    %%Title: (CorelDRAW! 9.0 Export)
    %%BoundingBox:-1152 -758 2816 658
    %%DocumentProcessColors: Cyan Magenta Yellow Black
    %%DocumentSuppliedResources: procset Adobe_level2_AI5 1.2 0
    %%+ procset Adobe_typography_AI5 1.0 1
    %%+ procset Adobe_ColorImage_AI6 1.1 0
    %%+ procset Adobe_Illustrator_AI5 1.2 0
    %%+ procset Adobe_cshow 2.0 8
    %AI3_ColorUsage: Color
    %AI3_TemplateBox:306 396 306 396

    Last edited by rafael sanzio; 10-23-2005 at 07:52 AM.

Similar Threads

  1. To read size of object content in eps format
    By rafael sanzio in forum VB Classic
    Replies: 0
    Last Post: 10-13-2005, 06:46 AM
  2. Validating XML
    By Jaco de Villiers in forum XML
    Replies: 1
    Last Post: 06-01-2001, 05:50 PM
  3. Replies: 2
    Last Post: 03-07-2001, 08:25 PM
  4. VB, Regional Settings, and Access
    By Greg Rothlander in forum VB Classic
    Replies: 4
    Last Post: 12-13-2000, 12:11 AM
  5. Re: COM object Password Security
    By Tom Shreve in forum Enterprise
    Replies: 0
    Last Post: 04-07-2000, 08:15 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center