[SPAM-Header] - Re: [reportlab-users] (no subject) - Email found in subject

Aleksander Piotrowski reportlab-users@reportlab.com
Sun, 15 Feb 2004 21:05:54 +0100


--DKU6Jbt7q3WqK7+M
Content-Type: text/plain; charset=iso-8859-2
Content-Disposition: inline
Content-Transfer-Encoding: 8bit

Hi

And here are files :/

Alek
-- 
<Cz3siu> jakby ktoś chciał kopać, to informuję, iż pelotas to brat $1-a
<$2> to argument za kopaniem? ;>
<Cz3siu> i jest człowiekiem godnym zaufania, szacunku, poważania społecznego
         i takie tam ;)

--DKU6Jbt7q3WqK7+M
Content-Type: text/plain; charset=iso-8859-2
Content-Disposition: attachment; filename="iso_8859_2.py"

stronaKodowa = (
	None,
	None,
	None,
	None,
	None,
	None,
	None,
	None,
	None,
	None,
	None,
	None,
	None,
	None,
	None,
	None,
	None,
	None,
	None,
	None,
	None,
	None,
	None,
	None,
	None,
	None,
	None,
	None,
	None,
	None,
	None,
	None,
	'space',
	'exclam',
	'quotedbl',
	'numbersign',
	'dollar',
	'percent',
	'ampersand',
	'quotesingle',
	'parenleft',
	'parenright',
	'asterisk',
	'plus',
	'comma',
	'hyphen',
	'period',
	'slash',
	'zero',
	'one',
	'two',
	'three',
	'four',
	'five',
	'six',
	'seven',
	'eight',
	'nine',
	'colon',
	'semicolon',
	'less',
	'equal',
	'greater',
	'question',
	'at',
	'A',
	'B',
	'C',
	'D',
	'E',
	'F',
	'G',
	'H',
	'I',
	'J',
	'K',
	'L',
	'M',
	'N',
	'O',
	'P',
	'Q',
	'R',
	'S',
	'T',
	'U',
	'V',
	'W',
	'X',
	'Y',
	'Z',
	'bracketleft',
	'backslash',
	'bracketright',
	'asciicircum',
	'underscore',
	'grave',
	'a',
	'b',
	'c',
	'd',
	'e',
	'f',
	'g',
	'h',
	'i',
	'j',
	'k',
	'l',
	'm',
	'n',
	'o',
	'p',
	'q',
	'r',
	's',
	't',
	'u',
	'v',
	'w',
	'x',
	'y',
	'z',
	'braceleft',
	'bar',
	'braceright',
	'asciitilde',
	'bullet',
	'Euro',
	'bullet',
	'quotesinglbase',
	'florin',
	'quotedblbase',
	'ellipsis',
	'dagger',
	'daggerdbl',
	'circumflex',
	'perthousand',
	'Scaron',
	'guilsinglleft',
	'OE',
	'bullet',
	'Zcaron',
	'bullet',
	'bullet',
	'quoteleft',
	'quoteright',
	'quotedblleft',
	'quotedblright',
	'bullet',
	'endash',
	'emdash',
	'tilde',
	'trademark',
	'scaron',
	'guilsinglright',
	'oe',
	'bullet',
	'zcaron',
	'Ydieresis',
	'space',
	'Aogonek', # 'exclamdown',
	'cent',
	'Lslash', # 'sterling',
	'currency',
	'yen',
	'Sacute', # 'brokenbar',
	'section',
	'dieresis',
	'copyright',
	'ordfeminine',
	'guillemotleft',
	'Zacute', # 'logicalnot',
	'hyphen',
	'registered',
	'Zdotaccent', # 'macron',
	'degree',
	'aogonek', # 'plusminus',
	'twosuperior',
	'lslash', # 'threesuperior',
	'acute',
	'mu',
	'sacute', # 'paragraph',
	'periodcentered',
	'cedilla',
	'onesuperior',
	'ordmasculine',
	'guillemotright',
	'zacute', #'onequarter',
	'onehalf',
	'threequarters',
	'zdotaccent', #'questiondown',
	'Agrave',
	'Aacute',
	'Acircumflex',
	'Atilde',
	'Adieresis',
	'Aring',
	'Cacute', # 'AE',
	'Ccedilla',
	'Egrave',
	'Eacute',
	'Eogonek', # 'Ecircumflex',
	'Edieresis',
	'Igrave',
	'Iacute',
	'Icircumflex',
	'Idieresis',
	'Eth',
	'Nacute', # 'Ntilde',
	'Ograve',
	'Oacute',
	'Ocircumflex',
	'Otilde',
	'Odieresis',
	'multiply',
	'Oslash',
	'Ugrave',
	'Uacute',
	'Ucircumflex',
	'Udieresis',
	'Yacute',
	'Thorn',
	'germandbls',
	'agrave',
	'aacute',
	'acircumflex',
	'atilde',
	'adieresis',
	'aring',
	'cacute', # 'ae',
	'ccedilla',
	'egrave',
	'eacute',
	'eogonek', #'ecircumflex',
	'edieresis',
	'igrave',
	'iacute',
	'icircumflex',
	'idieresis',
	'eth',
	'nacute', # 'ntilde',
	'ograve',
	'oacute',
	'ocircumflex',
	'otilde',
	'odieresis',
	'divide',
	'oslash',
	'ugrave',
	'uacute',
	'ucircumflex',
	'udieresis',
	'yacute',
	'thorn',
	'ydieresis' 
)

--DKU6Jbt7q3WqK7+M
Content-Type: text/plain; charset=iso-8859-2
Content-Disposition: attachment; filename="test.py"
Content-Transfer-Encoding: 8bit

from reportlab.pdfgen import canvas
from reportlab.pdfbase import pdfmetrics
from reportlab.lib.colors import Color

_stronaKodowa = pdfmetrics.Encoding( 'ISO-8859-2', 'WinAnsiEncoding' )

import iso_8859_2

j = 0

for i in iso_8859_2.stronaKodowa:
	_stronaKodowa[ j ] = i
	j += 1

pdfmetrics.registerEncoding( _stronaKodowa )

pdf = canvas.Canvas( '/tmp/out.pdf' )
pdf.setPageSize( ( 300, 200 ) )

face = pdfmetrics.EmbeddedType1Face( 'czcionki/Amazone/amazone.afm', 'czcionki/Amazone/amazone.pfb' )
pdfmetrics.registerTypeFace( face )
font = pdfmetrics.Font( 'Amazone', face.name, 'ISO-8859-2' )
pdfmetrics.registerFont( font )

tekst = pdf.beginText( 5, 30 )
tekst.setFont( 'Amazone', 20 )
tekst.textLine( 'jaskółka żółty słoń' )

pdf.drawText( tekst )
pdf.save()

--DKU6Jbt7q3WqK7+M--