Updated paddingTop of the Header Image and Title
This commit is contained in:
parent
0927f72eab
commit
bcef225732
|
@ -234,8 +234,8 @@ public class Geoportal_PDF_Exporter {
|
||||||
if (image != null) {
|
if (image != null) {
|
||||||
|
|
||||||
image.setFixedPosition(document.getLeftMargin(),
|
image.setFixedPosition(document.getLeftMargin(),
|
||||||
(pdfDocument.getDefaultPageSize().getHeight() - image.getImageHeight()) + 90);
|
(pdfDocument.getDefaultPageSize().getHeight() - image.getImageHeight()) + 80);
|
||||||
image.setMarginTop(20);
|
//image.setPaddingTop(20);
|
||||||
document.add(image);
|
document.add(image);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -244,7 +244,7 @@ public class Geoportal_PDF_Exporter {
|
||||||
PdfFont bold = PdfFontFactory.createFont(StandardFonts.TIMES_BOLD);
|
PdfFont bold = PdfFontFactory.createFont(StandardFonts.TIMES_BOLD);
|
||||||
Text title = new Text(projectTitle).setFont(bold);
|
Text title = new Text(projectTitle).setFont(bold);
|
||||||
Style style = new Style();
|
Style style = new Style();
|
||||||
style.setPaddingTop(20);
|
style.setPaddingTop(30);
|
||||||
style.setTextAlignment(TextAlignment.LEFT);
|
style.setTextAlignment(TextAlignment.LEFT);
|
||||||
Paragraph p = new Paragraph().add(title).addStyle(style).setFontSize(17);
|
Paragraph p = new Paragraph().add(title).addStyle(style).setFontSize(17);
|
||||||
document.add(p);
|
document.add(p);
|
||||||
|
|
Loading…
Reference in New Issue