AW: [reportlab-users] mixed page orientations
Florian Reiser
reportlab-users@reportlab.com
Thu, 10 Apr 2003 10:36:35 +0200
This is a multi-part message in MIME format.
------=_NextPart_000_0007_01C2FF4D.0F766FE0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
I have found out, that the setPageRotation method doesn't solve this
problem.
If you take the attached 1stPortrait.pdf (it starts with a portrait
page) and
print all three pages, then everything is ok.
You can look at it nicely and the pages are printed in the correct
fashion.
If you open 1stLandscape.pdf (it starts with a landscape page) and print
all tree pages,
then page 3 is upside down.
The same problem arises too, if you print just page 2 and 3 from
1stPortrait.pdf.
Page 2 gets correctly printed and page 3 is upside down.
You see, the page orientation of the first printed page decides if
there's
a problem when printing.
If the first page printed is in landscape mode, the problem occurs, else
not.
How can I assure, that the user gets the correct print output,
no matter if the first page is in landscape mode or not?
Regards
Florian Reiser
-----Urspr=FCngliche Nachricht-----
Von: reportlab-users-admin@reportlab.com
[mailto:reportlab-users-admin@reportlab.com] Im Auftrag von Andy
Robinson
Gesendet: Donnerstag, 10. April 2003 02:08
An: reportlab-users@reportlab.com
Betreff: RE: [reportlab-users] mixed page orientations
> I want to create documents containing landscape and portrait oriented=20
> pages. In Acrobat reader I can view it in the correct orientation
> If I print a document containing this mix in full, then I the portrait
> pages get
> turn by 180 degree, so the upside is down.
> How can I avoid that?
>=20
There is an extra attribute inside PDF at the page level
to control the Rotation. I just added a canvas method
to control this for you; you'll need to get a nightly
build or a CVS copy.
Use a line like this.
myCanvas.setPageRotation(180)=20
some time before the first page is finished, and
it will be visibly flipped. You can pass in multiples
of 90 degrees.
- Andy Robinson
_______________________________________________
reportlab-users mailing list
reportlab-users@reportlab.com
http://two.pairlist.net/mailman/listinfo/reportlab-users
------=_NextPart_000_0007_01C2FF4D.0F766FE0
Content-Type: application/pdf;
name="1stPortrait.pdf"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
filename="1stPortrait.pdf"
%PDF-1.3
%=93=8C=8B=9E ReportLab Generated PDF document http://www.reportlab.com
% 'BasicFonts': class PDFDictionary=20
1 0 obj
% The standard fonts dictionary
<< /F1 2 0 R
/F2 3 0 R >>
endobj
% 'F1': class PDFType1Font=20
2 0 obj
% Font Helvetica
<< /BaseFont /Helvetica
/Encoding /WinAnsiEncoding
/Name /F1
/Subtype /Type1
/Type /Font >>
endobj
% 'F2': class PDFType1Font=20
3 0 obj
% Font Helvetica-Bold
<< /BaseFont /Helvetica-Bold
/Encoding /WinAnsiEncoding
/Name /F2
/Subtype /Type1
/Type /Font >>
endobj
% 'Page1': class PDFPage=20
4 0 obj
% Page dictionary
<< /Contents 10 0 R
/MediaBox [ 0
0
595.275590551
841.88976378 ]
/Parent 9 0 R
/Resources << /Font 1 0 R
/ProcSet [ /PDF
/Text
/ImageB
/ImageC
/ImageI ] >>
/Rotate 0
/Trans << >>
/Type /Page >>
endobj
% 'Page2': class PDFPage=20
5 0 obj
% Page dictionary
<< /Contents 11 0 R
/MediaBox [ 0
0
841.88976378
595.275590551 ]
/Parent 9 0 R
/Resources << /Font 1 0 R
/ProcSet [ /PDF
/Text
/ImageB
/ImageC
/ImageI ] >>
/Rotate 0
/Trans << >>
/Type /Page >>
endobj
% 'Page3': class PDFPage=20
6 0 obj
% Page dictionary
<< /Contents 12 0 R
/MediaBox [ 0
0
595.275590551
841.88976378 ]
/Parent 9 0 R
/Resources << /Font 1 0 R
/ProcSet [ /PDF
/Text
/ImageB
/ImageC
/ImageI ] >>
/Rotate 0
/Trans << >>
/Type /Page >>
endobj
% 'R7': class PDFCatalog=20
7 0 obj
% Document Root
<< /Outlines 13 0 R
/PageMode /UseNone
/Pages 9 0 R
/Type /Catalog >>
endobj
% 'R8': class PDFInfo=20
8 0 obj
<< /Author (anonymous)
/CreationDate (20030410100854)
/Producer (ReportLab http://www.reportlab.com)
/Subject (unspecified)
/Title (untitled) >>
endobj
% 'R9': class PDFPages=20
9 0 obj
% page tree
<< /Count 3
/Kids [ 4 0 R
5 0 R
6 0 R ]
/Type /Pages >>
endobj
% 'R10': class PDFStream=20
10 0 obj
% page stream
<< /Filter [ /ASCII85Decode
/FlateDecode ]
/Length 273 >>
stream
Garo<5t_>8%#+-Po,lgd"g^qW9rB%d&VN<WQp2_)0$<TJnc*)Gbj#Z^D0+of
q>)"!o#4IuO17'KmMILZ=3D)ai7gL.D&qrkZ=3D"?]AH0^2/MJS0qK9K?,&Q=3Ds*+
fF\qnp9cte_VS^&dBF):p6Wo-B`!Qf8TPmp1utB""+&6S1U"ujP"8`E+.i2<
)t;_n5Aer_Z3k?k`(c^3,7KFa0V?\iii*'Ki%_DLo9(Q9Lf0cVpt^jXrnbZ>
j661.qXr8kL[gA<qZ^TO:p9~>endstream
endobj
% 'R11': class PDFStream=20
11 0 obj
% page stream
<< /Filter [ /ASCII85Decode
/FlateDecode ]
/Length 282 >>
stream
GarW4bt8((&;9K[q[RaJ_03D&FscT.6?7tIL<]l(9`i0U0(Jn2Sa9f$AUZ73
rH1sGQOfG_Xi$@]@Ei22*Pm:.CkJ#'eQ6#k9u)ZQ';da'=3Dl9nP'9d`B1dO]e
4flOqqgI[hT7+15hnhQbG@dj-eFo6R-trRG*5mtoTL12(?7t;ShN^*8NosoB
RpYof_^"5\L1s<s'N=3D"E`X>?_\WNUJb51o0dqk5#%.$l\/#C?!hD^Q09?OiZ
k5oh-mJ:Dk]X2DKrS0,>aVT*m"%nbTg]~>endstream
endobj
% 'R12': class PDFStream=20
12 0 obj
% page stream
<< /Filter [ /ASCII85Decode
/FlateDecode ]
/Length 283 >>
stream
GarW4h+@c8%#+-dp)S0V"k-%T2DaBaMPV+]D930MC+I/!/A=3D>\_cFAto5etJ
^)RVKYXAEYHFR%D0*mA"pHT#ukS$'ngO-GhCCF/HN=3D"^JR6W!OKeV5&XoXFd
JbCd%*d@)Mj/Lpb?%IHT?Mi7+U$H&BJWoF"i0mMP0#1RuOsEf:jB\.be6u`[
;tJ3+n9,30DhamhCf=3D1^I?$iuW\rdjJ7]YUkqH6TJ-WTN(;)IFdPDW>>u%9_
X#7,-=3D>!XDk;thF^R7.&0Qs.,^&]NV;RZ~>endstream
endobj
% 'R13': class PDFOutlines=20
13 0 obj
<< /Count 0
/Type /Outlines >>
endobj
xref
0 14
0000000000 65535 f
0000000113 00000 n
0000000221 00000 n
0000000386 00000 n
0000000559 00000 n
0000000858 00000 n
0000001157 00000 n
0000001456 00000 n
0000001591 00000 n
0000001787 00000 n
0000001911 00000 n
0000002329 00000 n
0000002756 00000 n
0000003186 00000 n
trailer
<< /ID=20
% ReportLab generated PDF document -- digest =
(http://www.reportlab.com)=20
[(+\351\277\260\303\320L\273\366\343V\020Y\020\330\)) =
(+\351\277\260\303\320L\273\366\343V\020Y\020\330\))]=20
=20
/Info 8 0 R
/Root 7 0 R
/Size 14 >>
startxref
3238
%%EOF
------=_NextPart_000_0007_01C2FF4D.0F766FE0
Content-Type: application/pdf;
name="1stLandscape.pdf"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
filename="1stLandscape.pdf"
%PDF-1.3
%=93=8C=8B=9E ReportLab Generated PDF document http://www.reportlab.com
% 'BasicFonts': class PDFDictionary=20
1 0 obj
% The standard fonts dictionary
<< /F1 2 0 R
/F2 3 0 R >>
endobj
% 'F1': class PDFType1Font=20
2 0 obj
% Font Helvetica
<< /BaseFont /Helvetica
/Encoding /WinAnsiEncoding
/Name /F1
/Subtype /Type1
/Type /Font >>
endobj
% 'F2': class PDFType1Font=20
3 0 obj
% Font Helvetica-Bold
<< /BaseFont /Helvetica-Bold
/Encoding /WinAnsiEncoding
/Name /F2
/Subtype /Type1
/Type /Font >>
endobj
% 'Page1': class PDFPage=20
4 0 obj
% Page dictionary
<< /Contents 10 0 R
/MediaBox [ 0
0
841.88976378
595.275590551 ]
/Parent 9 0 R
/Resources << /Font 1 0 R
/ProcSet [ /PDF
/Text
/ImageB
/ImageC
/ImageI ] >>
/Rotate 0
/Trans << >>
/Type /Page >>
endobj
% 'Page2': class PDFPage=20
5 0 obj
% Page dictionary
<< /Contents 11 0 R
/MediaBox [ 0
0
841.88976378
595.275590551 ]
/Parent 9 0 R
/Resources << /Font 1 0 R
/ProcSet [ /PDF
/Text
/ImageB
/ImageC
/ImageI ] >>
/Rotate 0
/Trans << >>
/Type /Page >>
endobj
% 'Page3': class PDFPage=20
6 0 obj
% Page dictionary
<< /Contents 12 0 R
/MediaBox [ 0
0
595.275590551
841.88976378 ]
/Parent 9 0 R
/Resources << /Font 1 0 R
/ProcSet [ /PDF
/Text
/ImageB
/ImageC
/ImageI ] >>
/Rotate 0
/Trans << >>
/Type /Page >>
endobj
% 'R7': class PDFCatalog=20
7 0 obj
% Document Root
<< /Outlines 13 0 R
/PageMode /UseNone
/Pages 9 0 R
/Type /Catalog >>
endobj
% 'R8': class PDFInfo=20
8 0 obj
<< /Author (anonymous)
/CreationDate (20030410100854)
/Producer (ReportLab http://www.reportlab.com)
/Subject (unspecified)
/Title (untitled) >>
endobj
% 'R9': class PDFPages=20
9 0 obj
% page tree
<< /Count 3
/Kids [ 4 0 R
5 0 R
6 0 R ]
/Type /Pages >>
endobj
% 'R10': class PDFStream=20
10 0 obj
% page stream
<< /Filter [ /ASCII85Decode
/FlateDecode ]
/Length 273 >>
stream
GarW4c"[>8%#"'Wq[R[`"'$pUCWARR[LgNR+aS^fr6Wk3>4VY\lgBoe/[fei
dAO5d_%5/oI_rGMnV+d\4+NS1[RP1PoA)<)'C^%hKIKWa$TqlT#cWQ1:(%fq
#Wq"j50j&/He9]^;*-ZN\@H&dQ!40B8t_n^L-V9(r'G=3DI2s+@-=3D\NOIIXO<G
T>5q49Pq)2PVZro;+Nb<AQ1gSlf7k&c6`_9^omPAF^HnWO%DopACk\]IpZ?n
hY(9Ri=3DC"MR)L`4joS#R:lP~>endstream
endobj
% 'R11': class PDFStream=20
11 0 obj
% page stream
<< /Filter [ /ASCII85Decode
/FlateDecode ]
/Length 282 >>
stream
GarW4bt8((&;9K[q[RaJ_03D&FscT.6?7tIL<]l(9`i0U0(Jn2Sa9f$AUZ73
rH1sGQOfG_Xi$@]@Ei22*Pm:.CkJ#'eQ6#k9u)ZQ';da'=3Dl9nP'9d`B1dO]e
4flOqqgI[hT7+15hnhQbG@dj-eFo6R-trRG*5mtoTL12(?7t;ShN^*8NosoB
RpYof_^"5\L1s<s'N=3D"E`X>?_\WNUJb51o0dqk5#%.$l\/#C?!hD^Q09?OiZ
k5oh-mJ:Dk]X2DKrS0,>aVT*m"%nbTg]~>endstream
endobj
% 'R12': class PDFStream=20
12 0 obj
% page stream
<< /Filter [ /ASCII85Decode
/FlateDecode ]
/Length 283 >>
stream
GarW4h+@c8%#+-dp)S0V"k-%T2DaBaMPV+]D930MC+I/!/A=3D>\_cFAto5etJ
^)RVKYXAEYHFR%D0*mA"pHT#ukS$'ngO-GhCCF/HN=3D"^JR6W!OKeV5&XoXFd
JbCd%*d@)Mj/Lpb?%IHT?Mi7+U$H&BJWoF"i0mMP0#1RuOsEf:jB\.be6u`[
;tJ3+n9,30DhamhCf=3D1^I?$iuW\rdjJ7]YUkqH6TJ-WTN(;)IFdPDW>>u%9_
X#7,-=3D>!XDk;thF^R7.&0Qs.,^&]NV;RZ~>endstream
endobj
% 'R13': class PDFOutlines=20
13 0 obj
<< /Count 0
/Type /Outlines >>
endobj
xref
0 14
0000000000 65535 f
0000000113 00000 n
0000000221 00000 n
0000000386 00000 n
0000000559 00000 n
0000000858 00000 n
0000001157 00000 n
0000001456 00000 n
0000001591 00000 n
0000001787 00000 n
0000001911 00000 n
0000002329 00000 n
0000002756 00000 n
0000003186 00000 n
trailer
<< /ID=20
% ReportLab generated PDF document -- digest =
(http://www.reportlab.com)=20
[(\251\275m\356\246\373z\013K1\236\374\253\005\231e) =
(\251\275m\356\246\373z\013K1\236\374\253\005\231e)]=20
=20
/Info 8 0 R
/Root 7 0 R
/Size 14 >>
startxref
3238
%%EOF
------=_NextPart_000_0007_01C2FF4D.0F766FE0--