私はランドスケープモードでpdfページを作成したいのですが、ブラウザは生成されたページをポートレートモードでレンダリングするようです。IEとFirefoxの両方で同じ問題が発生しました。ここで私はランドスケープモードを取得しました。
Rectangle a4 = PageSize.A4;
Rectangle a4LandScape = a4.rotate();
doc.setPageSize(a4LandScape);
I can see that width>height after line 3, but once the page is rendered to browser, I get portrait again.. Is there any other way to do this?
PS:iText(2.7)の古いバージョンを使用していますが、PageSizeのLegal_LandScapeなどのオプションはありません