Google Groups Home
Help | Sign in
Recent pages and files
Guide to Resizing Symbols    

To create a barcode of the required width and height (without stretching the text) perform the following steps, in order.

Starting with this example:

0 0 moveto (977147396801) (includetext) ean13 barcode

(1) Find the uniform (same x and y) scale factor that makes your output of the required width:

gsave
1.3 1.3 scale % <-- Add a line like this
0 0 moveto (977147396801) (includetext) ean13 barcode
grestore

(2) Add a height option that adjusts the bar height appropriately (taking the scaling into account):

gsave
1.3 1.3 scale
% Added height=0.8 option to adjust height
0 0 moveto (977147396801) (includetext height=0.8) ean13 barcode
grestore

The result should now be of the intended dimensions with properly scaled (not stretched) text.

Version: 
Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google