Freebsd Laptop Support

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg

Tuesday, 26 February 2013

CorelDraw Basics: Exporting to SVG for HTML5 web pages

Posted on 04:28 by Unknown
Category: Techwriter

There are advantages to using SVG over the more popular PNG or JPEG when working with technical documents online. SVG retains the clarity of the original drawing and can be inserted easily into an HTML5-compliant web page. CorelDraw (my preferred vector-editing program) has long been able to export to SVG. This brief tutorial will focus on exporting a simple CorelDraw technical diagram to SVG and inserting the code using the svg tag.

To export a drawing to SVG in CorelDraw X3:

1. Select a grouped drawing using the Pick Tool. The example below is a vector drawn MP3 player with callouts.

*Illustration drawn and designed by the author.

2. Click File then Export.



3. In the Save as type: list, select SVG-Scalable Vector Graphics

4. Select the Selected only check box. Click Export.



5. In the SVG Export window, CorelDraw will have an Issue tab to inform you of any problems exporting to SVG. The most common issues are the Non-RGB colors present in the drawing and bitmap images in the illustration.



The MP3 player illustration actually doesn't have any bitmap images even though CorelDraw issued a warning so the only concern in this example should be the use of CMYK colors.

6. In the SVG Export General tab, use UTF-8 and Internal Style Sheet for the Encoding Method and Styling Options items respectively.



To keep the SVG file to a single file, select As Curves in the Export Text box. Otherwise, fonts would have to be embedded and would increase file size. The only text in the MP3 drawing are the number callouts so it's unnecessary to include a character subset.

Since the MP3 player drawing in this example is completely vector-based, there shouldn't be any bitmaps included or linked with the SVG file. However, if the Corel Draw illustration does have a bitmap included in the design, select Link Image or Embed Images as needed.

Click OK to export illustration.

7. To preview the SVG file in a browser, open the SVG file using an updated version of Google Chrome. Chrome supports SVG rendering natively. If there are parts of the drawing missing, check if you selected all the parts of the illustration before exporting. Depending on the design, ungroup or group the objects.

To add an SVG file to an HTML5 web-page:

1. There are several ways to place the SVG into a web page, such as using a div or section tag or linking the file. However, non-designers (like me) just want the SVG placed into the code and positioned using CSS3.

2. A simple way to add the SVG is to open the SVG file using a text editor. In the example below, Notepad++ for Windows is used to edit the markup. Note that this earlier version of Notepad++ doesn't highlight the svg tag in the code.

3. In the SVG file, copy the code beginning from the note "Creator: CorelDraw" down to the svg close tag. The essential code is just below the XML declaration.


4. Paste the SVG code into the HTML file. Save the HTML file and preview in a supported browser. Note that Microsoft Internet Explorer 8 does not support the svg tag. The screenshots below show Mozilla Firefox 10.x and Google Chrome version 24.x.







Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Posted in Techwriter | No comments
Newer Post Older Post Home

0 comments:

Post a Comment

Subscribe to: Post Comments (Atom)

Popular Posts

  • Drawing a Rounded Triangle in CorelDraw
    Category: Tech Writer If you need to draw a safety icon such as those found in user manuals or any icon which requires a rounde...
  • Linux on Film: The Amazing Spider-Man (2012) Part 1
    Ok, for dedicated fans of the latest Spider-Man movie (me included), Sony made use of this brilliant flick to advertise their Sony ...
  • Tech Flashback: The Lethal Weapon series 1987 - 1998 Part 3
    Category: Tech Today Continued from Tech Flashback: The Lethal Weapon series 1987 - 1998 Part 2 In this series of articles, we continue our ...
  • CorelDRAW X5: Adding Barcodes and QR Codes to Business cards Part 2
    QR Codes and QR Code Services Due to the popularity of QR Apps that can be installed on smartphones and iOS devices, QR codes are also becom...
  • Linux on Film: Antitrust (2001)
    *All screencaps from Antitrust (2001 ) Long-time Linux users are familiar with Antitrust (2001), which was strongly adverti...
  • CorelDraw Basics: Exporting to SVG for HTML5 web pages
    Category: Techwriter There are advantages to using SVG over the more popular PNG or JPEG when working with technical ...
  • Sony RAW (.ARW) support on openSUSE KDE
    Category: Linux Some advanced digital cameras and ILCs supports the RAW format, which many serious photographers prefer over JP...
  • Knoppix LiveUSB Basics: Bluetooth and Blueman Part 1
    Although Bluetooth has never been as reliable as a wired or RF connection, adding Bluetooth to an old machine is a simple way ...
  • Linux on Film: The Amazing Spider-Man (2012) Part 2
    Piezoelectric technology and microcontroller From a plot perspective, Peter probably made use of existing equipment like th...
  • Microsoft Product Placement in Arrow Season One Part 1
    Note: Unsolicited But Offered normally features Linux on film but in celebration of the ongoing season 2 of Arrow (w...

Categories

  • Linux
  • Linux - Mandriva
  • Linux - openSUSE
  • Tech Today
  • Techwriter
  • Travel Logs

Blog Archive

  • ▼  2013 (229)
    • ►  November (19)
    • ►  October (21)
    • ►  September (20)
    • ►  August (23)
    • ►  July (23)
    • ►  June (21)
    • ►  May (24)
    • ►  April (22)
    • ►  March (19)
    • ▼  February (16)
      • Considerations for an Apple and Samsung Smart Watc...
      • Considerations for an Apple and Samsung Smart Watc...
      • CorelDraw Basics: Exporting to SVG for HTML5 web p...
      • Tips on Writing a Manual or Guide using LyX Part 2
      • QuickFix: Transmission or Deluge (in China)?
      • Tips on Writing a Manual or Guide using LyX Part 1
      • QuickFix: Eject a USB storage device even with iTu...
      • Virtual Relationships and Social Networking
      • QuickFix: Microsoft Wireless Laser Mouse 6000
      • BYOD, network security, James Bond, and MacGyver
      • Linux on Video: "The Linux Action Show!"
      • Linux on Film: Criminal Minds - Season 8
      • Brief Thoughts on Fedora 18 DVD install and Gnome 3.6
      • QuickFix: Write a Multi-Language Online manual usi...
      • SkyDrive on Fedora 18 Gnome 3.x
      • Wacom Pen and Touch performance on openSUSE 12.2
    • ►  January (21)
  • ►  2012 (261)
    • ►  December (28)
    • ►  November (22)
    • ►  October (28)
    • ►  September (20)
    • ►  August (28)
    • ►  July (23)
    • ►  June (21)
    • ►  May (15)
    • ►  April (26)
    • ►  March (9)
    • ►  February (11)
    • ►  January (30)
  • ►  2011 (10)
    • ►  December (10)
Powered by Blogger.

About Me

Unknown
View my complete profile