> Because that method has a different purpose than
> the getPageSizeWithRotation method.
Ah, thanks. :)
> It's better that you write your own code so that
> you know which page sizes are equals according to
> your requirements, because not every page that
> is equal to you, will be equal to me.
Richard Michael wrote:
> System.out.println doc.getPageSize():
> Rectangle: 612.0x792.0 (rot: 0 degrees)
>
> System.out.println doc.getPageRotation():
> 90
And
System.out.println doc.getPageSizeWithRotation():
Rectangle: 612.0x792.0 (rot: 90 degrees)
> Why doesn't getPageSize indicate th
Hi Bruno,
> You are assuming that class Rectangle has its own implementation
> of the equals() method, which it hasn't. And even if you were able
Ah, sorry I was just hoping something similar would be possible, and
writing pseudo-code. I noticed the height and width related methods,
but it seeme
Richard Michael wrote:
> Something such as..
>
> PdfReader source = new PdfReader("test.pdf");
> if ( source.getPageSize(1).equals(PageSize.LETTER) ) {
> (..do stuff..)
> }
>
> Am I on the right track?
No, you aren't.
You are assuming that class Rectangle has its own implementation
of
Hello list,
I think this is a Java question more than an iText question, but I'm
learning Java as I work on an iText related project, so perhaps asking
here is most useful.
I would like to test the page size of a PDF document I have read using a
PdfReader.
Instead of obtaining the size in PDF po