[reportlab-users] Bug in SimpleDocTemplate?

Michael Hipp Michael at Hipp.com
Thu Feb 1 16:30:59 EST 2007


Andy Robinson wrote:

>> So what would someone do if they (like me) are using GhostScript for

>> printing rather than Adobe. Does it have such an option? (I don't see

>> one.)

> Adobe defines how PDF is supposed to work, not Ghostscript. We can't

> make everyone happy so our target is to work with Adobe Reader. I am

> quite sure the official Ghostscript newsgroup answer would be "just use

> this tiny Postscript macro...." but I prefer Python to Postscript ;-)


I didn't say anything about GhostScript being the authority. I just find it
odd that using a kludgey option like having Reader modify the output after the
fact is the accepted answer.

And it does not appear that Adobe Reader is particularly "happy" with the
output. See the attached screenshot.

I regularly download and print landscape PDF documents where the rotation of
the "document" and the "paper" match. So I do not think that using that
option is really how this is supposed to be. Please see this example:

http://tnerual.eriogerg.free.fr/vimqrc.pdf

Both the paper and the document are set to landscape. No funny print options
required.

Could we perhaps take a second look at this?


> There is another option which may help. Try this Canvas method at some

> point when drawing the first page, with +90 or -90 degrees:

>

> def setPageRotation(self, rot):

> """Instruct display device that this page is to be rotated"""

> assert rot % 90.0 == 0.0, "Rotation must be a multiple of 90

> degrees"

> self._pageRotation = rot


Thanks for this. But I'm not able to discern any change in the output from it.

Thanks,
Michael

-------------- next part --------------
A non-text attachment was scrubbed...
Name: landscape.jpg
Type: image/jpeg
Size: 72066 bytes
Desc: not available
Url : <http://two.pairlist.net/pipermail/reportlab-users/attachments/20070201/e80021a6/attachment-0001.jpg>


More information about the reportlab-users mailing list