Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -540,6 +540,7 @@ protected void visitRun( XWPFRun docxRun, boolean pageNumber, String url, IIText

StylableParagraph pdfParagraph = (StylableParagraph) pdfParagraphContainer;
pdfParagraph.adjustMultipliedLeading( currentRunFontAscii );
pdfParagraph.adjustLeading(currentRunFontAscii);

// addd symbol list item chunk if needed.
String listItemText = pdfParagraph.getListItemText();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ public class StylableParagraph

private Color listItemFontColor;

private boolean defaultLeading = true;

public StylableParagraph( StylableDocument ownerDocument, IITextContainer parent )
{
super();
Expand Down Expand Up @@ -244,6 +246,7 @@ public void setLeading( float fixedLeading, float multipliedLeading )
{
super.setLeading( fixedLeading, multipliedLeading );
this.originMultipliedLeading = multipliedLeading;
this.defaultLeading = false;
}

@Override
Expand Down Expand Up @@ -276,4 +279,10 @@ public void adjustMultipliedLeading( Font font )
}
}

public void adjustLeading( Font font ){
if ( font != null ){
super.setLeading(font.getSize());
this.defaultLeading = false;
}
}
}