Issue with images and page endings

71 views
Skip to first unread message

Fuzzyman

unread,
Aug 11, 2009, 9:19:38 AM8/11/09
to rst2pdf-discuss
I have an issue with images and I wonder if it is a known issue, or
possibly already fixed.

My installed version of rst2pdf is 0.11. I'm on Mac OS X with Python
2.5.

I always specify an explicit size for images (usually just one of the
two dimensions and rst2pdf does a good job of keeping the scale). If
an image ends up near the end of a page and doesn't fit then instead
of moving it to the next page it scales it down - overriding the
explicit size I have specified and sometimes resulting in a tiny
image.

I'm currently having to move text around to keep the images from being
near the end of pages! I see a message similar to below output when
this happens:

[WARNING] flowables.py:68 image images/packages.png is too tall
for the frame, rescaling

I also regularly get a ton of messages as per below with no indication
what caused them:

[WARNING] flowables.py:443 BoundByWidth too wide to fit in frame:
<BoundByWidth at 0x1d8cf80> size= maxWidth=0x
[WARNING] flowables.py:443 BoundByWidth too wide to fit in frame:
<BoundByWidth at 0x1d8cf80> size= maxWidth=0x

All the best,


Michael Foord
--
http://www.ironpythoninaction.com/

Roberto Alsina

unread,
Aug 11, 2009, 9:22:03 AM8/11/09
to rst2pdf...@googlegroups.com
On Tuesday 11 August 2009 10:19:38 Fuzzyman wrote:
> I have an issue with images and I wonder if it is a known issue, or
> possibly already fixed.
>
> My installed version of rst2pdf is 0.11. I'm on Mac OS X with Python
> 2.5.
>
> I always specify an explicit size for images (usually just one of the
> two dimensions and rst2pdf does a good job of keeping the scale). If
> an image ends up near the end of a page and doesn't fit then instead
> of moving it to the next page it scales it down - overriding the
> explicit size I have specified and sometimes resulting in a tiny
> image.

Could you send me a test case? As simple as you can, please :-)

> I'm currently having to move text around to keep the images from being
> near the end of pages! I see a message similar to below output when
> this happens:
>
> [WARNING] flowables.py:68 image images/packages.png is too tall
> for the frame, rescaling
>
> I also regularly get a ton of messages as per below with no indication
> what caused them:
>
> [WARNING] flowables.py:443 BoundByWidth too wide to fit in frame:
> <BoundByWidth at 0x1d8cf80> size= maxWidth=0x
> [WARNING] flowables.py:443 BoundByWidth too wide to fit in frame:
> <BoundByWidth at 0x1d8cf80> size= maxWidth=0x

These are usually caused by literal blocks (say, code samples) which don't fit
in the page width, and are usually harmless.

--
("\''/").__..-''"`-. . Roberto Alsina
`9_ 9 ) `-. ( ).`-._.`) KDE Developer (MFCH)
(_Y_.)' ._ ) `._`. " -.-' http://lateral.netmanagers.com.ar
_..`-'_..-_/ /-'_.' The 6,855th most popular site of Slovenia
(l)-'' ((i).' ((!.' according to alexa.com (27/5/2007)

etank

unread,
Aug 28, 2009, 11:46:38 AM8/28/09
to rst2pdf-discuss
I am having the same kind of errors with images in documents. Here is
the text that I am working with:

==================
How to Enable /PAE
==================

1. Navigate to C:\ in Windows Explorer.
2. On the menu bar click *Tools->Folder* Options
#. Click on the View tab

#. Check the radio button for Show hidden files and folders
#. Make sure there is not a check in the Hide protected operating
system files box

#. You will get a pop up warning message saying:


.. image:: ./images/pae/image001.png
:align: center
:scale: 80

.. image:: ./images/pae/image003.png
:align: center
:scale: 80

4. Click OK
#. Locate the file in C:\ named boot.ini. It should now be visible
that the hidden files and operating system files options have been
selected.

.. image:: ./images/pae/image005.png
:align: center
:scale: 80

6. Right click on this file and select Properties
#. Uncheck the Read-only box and then click Apply

.. image:: ./images/pae/image007.png
:align: center
:scale: 80

8. Open the file with Notepad.exe
#. On the bottom line of the file add /PAE to the end of the line. It
should look like the following:

boot.ini::

[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(2)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(2)\WINDOWS="Windows Server 2003,
Enterprise" /fastdetect /NoExecute=OptOut /PAE

10. Save the file and close it.
#. Do the reverse of steps 6 and 7 and make the file *Read-only*
again.
#. Reboot the server. Once the server is back up verify that you can
now see all of the memory that is available to the system.



When I run rst2pdf file.txt I get:

/usr/lib/python2.6/dist-packages/uniconvertor/app/utils/
locale_utils.py:9: DeprecationWarning: The popen2 module is
deprecated. Use the subprocess module.
from popen2 import popen2
[WARNING] createpdf.py:258 Using image ./images/pae/image001.png
without specifying size.Calculating based on image size at 300dpi
[WARNING] createpdf.py:258 Using image ./images/pae/image003.png
without specifying size.Calculating based on image size at 300dpi
[WARNING] createpdf.py:258 Using image ./images/pae/image005.png
without specifying size.Calculating based on image size at 300dpi
[WARNING] createpdf.py:258 Using image ./images/pae/image007.png
without specifying size.Calculating based on image size at 300dpi
[WARNING] flowables.py:443 BoundByWidth too wide to fit in frame:
<BoundByWidth at 0x942bfac> size= maxWidth=0x




Pete Bratach

unread,
Jan 17, 2014, 3:17:15 PM1/17/14
to rst2pdf...@googlegroups.com
Hi,
I'm seeing this same issue, where images near the bottom of the page generate the "too tall for the frame" error. 

I'm using rst2pdf 0.93, PIL 1.1.7, report lab 2.7. 

Has a solution been found for this?

Thanks,
Pete
Reply all
Reply to author
Forward
0 new messages