Skip to content

Commit

Permalink
Fix valign handling #111
Browse files Browse the repository at this point in the history
  • Loading branch information
fugerit79 committed Feb 4, 2024
1 parent e5afbb1 commit 9601d45
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ private static void handleAligns( DocCell docCell, Cell cell ) {
}
}
if ( docCell.getValign() != DocPara.ALIGN_UNSET ) {
Optional<VerticalAlignment> va = VerticalAlignment.of( docCell.getAlign() );
Optional<VerticalAlignment> va = VerticalAlignment.of( docCell.getValign() );
if ( va.isPresent() ) {
cell.setVerticalAlignment( va.get() );
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ protected static Image createBarcode( DocBarcode docBarcode, OpenPdfHelper helpe
}



public static Font createFont( String fontName, int fontSize, int fontStyle, OpenPdfHelper docHelper, String color ) throws DocumentException, IOException {
return OpenPdfFontHelper.createFont(fontName, fontName, fontSize, fontStyle, docHelper, color);
}
Expand Down

0 comments on commit 9601d45

Please sign in to comment.