diff options
-rw-r--r-- | src/main/java/at/knowcenter/wag/egov/egiz/PdfAS.java | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/main/java/at/knowcenter/wag/egov/egiz/PdfAS.java b/src/main/java/at/knowcenter/wag/egov/egiz/PdfAS.java index c0801bb..313a11c 100644 --- a/src/main/java/at/knowcenter/wag/egov/egiz/PdfAS.java +++ b/src/main/java/at/knowcenter/wag/egov/egiz/PdfAS.java @@ -1051,16 +1051,21 @@ public abstract class PdfAS //get pages of currentdocument
int doc_pages = reader.getNumberOfPages();
int page = doc_pages;
+ boolean make_new_page = pos.isNewPage();
if(!(pos.isNewPage() || pos.isPauto()))
{
//we should posit signaturtable on this page
+
page = pos.getPage();
+ //System.out.println("XXXXPAGE="+page+" doc_pages="+doc_pages);
if (page > doc_pages)
{
- throw new PDFDocumentException(227, "Page number is to big(=" + page+ ") cannot be parsed.");
+ make_new_page = true;
+ page = doc_pages;
+ //throw new PDFDocumentException(227, "Page number is to big(=" + page+ ") cannot be parsed.");
}
}
- boolean make_new_page = pos.isNewPage();
+
//getPagedimensions
Rectangle psize = reader.getPageSizeWithRotation(page);
int page_rotation = reader.getPageRotation(page);
|