Top-rated recipes by Yuriy Tkachenko http://code.activestate.com/recipes/users/2011468/top/2005-08-06T12:15:13-07:00ActiveState Code RecipesList all Type 1 Cyrillic fonts to one PDF file (Python)
2005-08-06T12:15:13-07:00Yuriy Tkachenkohttp://code.activestate.com/recipes/users/2011468/http://code.activestate.com/recipes/438818-list-all-type-1-cyrillic-fonts-to-one-pdf-file/
<p style="color: grey">
Python
recipe 438818
by <a href="/recipes/users/2011468/">Yuriy Tkachenko</a>
(<a href="/recipes/tags/text/">text</a>).
</p>
<p>This example uses ReportLab PDF library <a <a href="http://href=%22http://www.reportlab.com%22%3Ehttp://www.reportlab.com" rel="nofollow">href="http://www.reportlab.com">http://www.reportlab.com</a></a> and made
from reportlab/demos/stdfonts/stdfonts.py demo. It generates tables showing
all Type 1 fonts in Cyrillic cp1251 encoding in /usr/share/fonts/default/Type1
Linux directory. It may be helpful for choosing most suitable fonts for your
documents.</p>
How to use Cyrillic fonts in ReportLab PDF library (Python)
2005-08-06T10:02:14-07:00Yuriy Tkachenkohttp://code.activestate.com/recipes/users/2011468/http://code.activestate.com/recipes/438817-how-to-use-cyrillic-fonts-in-reportlab-pdf-library/
<p style="color: grey">
Python
recipe 438817
by <a href="/recipes/users/2011468/">Yuriy Tkachenko</a>
(<a href="/recipes/tags/text/">text</a>).
</p>
<p>By default ReportLab PDF library <a <a href="http://href=%22http://www.reportlab.com%22%3Ehttp://www.reportlab.com" rel="nofollow">href="http://www.reportlab.com">http://www.reportlab.com</a></a> doesn't allow
easy using Cyrillic fonts for generating PDF documents. The following example
explains how to use any font in the Adobe AFM ('Adobe Font Metrics') and PFB
('Printer Font Binary') format (aka Type 1) which supports Unicode Cyrillic
characters (glyphs). It assumes that you have font files named 'a010013l.afm'
and 'a010013l.pfb' in the same directory with this example.
The font files can be found in /usr/share/fonts/default/Type1 directory in
many Linux distributions.</p>
Grab a document with images from the web (Python)
2004-08-31T02:39:59-07:00Yuriy Tkachenkohttp://code.activestate.com/recipes/users/2011468/http://code.activestate.com/recipes/302700-grab-a-document-with-images-from-the-web/
<p style="color: grey">
Python
recipe 302700
by <a href="/recipes/users/2011468/">Yuriy Tkachenko</a>
(<a href="/recipes/tags/web/">web</a>).
</p>
<p>This is a way to grab a web page containing images
and save this page and selected images to the same directory.</p>