mesaglam / alivepdf

Automatically exported from code.google.com/p/alivepdf
0 stars 0 forks source link

Landscape mode not working #3

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Creating a PDF with some portrait pages and then calling
pdf.addPage("A4",0,Orientation.LANDSCAPE); does not output landscape pages.
 The attached PDF shows this, it should have one portrait page, and then
the rest are landscape.

(Thibault, this is the same issue I mentioned on IM the other day, I'm just
entering it so it can be tracked)

Original issue reported on code.google.com by marc.hug...@gmail.com on 3 Sep 2007 at 12:34

Attachments:

GoogleCodeExporter commented 9 years ago
perfect, I will post an update on sunday 9th, thanks for tracking :) 

Original comment by thibault.imbert on 7 Sep 2007 at 9:29

GoogleCodeExporter commented 9 years ago
Hello Marc,

can you try again with the version 0.1.3 I have just uploaded ?

let me know ;)

Original comment by thibault.imbert on 11 Sep 2007 at 2:42

GoogleCodeExporter commented 9 years ago
Portrait and landscape are working, but they're reversed.  (If you ask for 
portrait,
you get landscape, and vice-versa).

But I'm having a larger problem with the new release.  I can't get any text to 
layout
correctly.  I'll investigate this as soon as I have time, but for now I'm going 
back
to 0.1.2

Original comment by marc.hug...@gmail.com on 22 Sep 2007 at 4:12

GoogleCodeExporter commented 9 years ago

I did some investigation and sometimes page.fw and page.fh are NaN.  If I add:

        fw = pW;
        fh = pH;

In the Page() constructor, it seems to fix the problem and I can successfully 
make
mixed portrait and landscape PDFs.

Original comment by marc.hug...@gmail.com on 21 Oct 2007 at 9:06