Resolve split sections
This commit is contained in:
parent
d8cf7e81b9
commit
c8acddb251
1 changed files with 4 additions and 5 deletions
|
@ -118,13 +118,12 @@ public class SplitPdfBySectionsController {
|
||||||
|
|
||||||
try (PDPageContentStream contentStream =
|
try (PDPageContentStream contentStream =
|
||||||
new PDPageContentStream(
|
new PDPageContentStream(
|
||||||
subDoc, subPage, AppendMode.OVERWRITE, true, true)) {
|
subDoc, subPage, AppendMode.APPEND, true, true)) {
|
||||||
// Set clipping area and position
|
// Set clipping area and position
|
||||||
float translateX = -subPageWidth * i;
|
float translateX = -subPageWidth * i;
|
||||||
float translateY = height - subPageHeight * (verticalDivisions - j);
|
|
||||||
|
|
||||||
// Code for google Docs pdfs..
|
//float translateY = height - subPageHeight * (verticalDivisions - j);
|
||||||
// float translateY = -subPageHeight * (verticalDivisions - 1 - j);
|
float translateY = -subPageHeight * (verticalDivisions - 1 - j);
|
||||||
|
|
||||||
contentStream.saveGraphicsState();
|
contentStream.saveGraphicsState();
|
||||||
contentStream.addRect(0, 0, subPageWidth, subPageHeight);
|
contentStream.addRect(0, 0, subPageWidth, subPageHeight);
|
||||||
|
|
Loading…
Reference in a new issue