# If we do a zlib.decompress(stream) now, it will succeed even if stream
- # has trailing garbage. But zlib.decompress(steram[:-1]) would fail. In
- # Python, there is no way the get te real end on the compressed zlib
+ # has trailing garbage. But zlib.decompress(stream[:-1]) would fail. In
+ # Python, there is no way to get the real end of the compressed zlib
# stream (see also http://www.faqs.org/rfcs/rfc1950.html and
# http://www.faqs.org/rfcs/rfc1951.html). We may just check the last
# 4 bytes (adler32).
@@ -5018,7 +5067,7 @@
obj_images.append(self.ConvertImage(
sourcefn=rendered_image_file_name,
targetfn='pso.conv-%d.sam2p-np.pdf' % obj_num,
- # We specify -s here to explicitly exclue SF_Opaque for single-color
+ # We specify -s here to explicitly exclude SF_Opaque for single-color
# images.
# !! do we need /ImageMask parsing if we exclude SF_Mask here as well?
# Original sam2p order: Opaque:Transparent:Gray1:Indexed1:Mask:Gray2:Indexed2:Rgb1:Gray4:Indexed4:Rgb2:Gray8:Indexed8:Rgb4:Rgb8:Transparent2:Transparent4:Transparent8
@@ -5184,7 +5233,7 @@
A new dict mapping object numbers to PdfObj instances.
"""
# List of list of desc ([obj_num, head_minus, stream, refs_to,
- # inrefs_count]). Each list of eqclasses is an eqivalence class of
+ # inrefs_count]). Each list of eqclasses is an equivalence class of