mirror of
https://github.com/sismics/docs.git
synced 2025-12-13 17:56:20 +00:00
Fix PDF export if description is null
This commit is contained in:
@@ -99,6 +99,10 @@ public class PdfPage implements Closeable {
|
|||||||
* @throws IOException
|
* @throws IOException
|
||||||
*/
|
*/
|
||||||
private void drawText(float paragraphWidth, PDFont font, int fontSize, String text, boolean centered) throws IOException {
|
private void drawText(float paragraphWidth, PDFont font, int fontSize, String text, boolean centered) throws IOException {
|
||||||
|
if (text == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
pdContent.setFont(font, fontSize);
|
pdContent.setFont(font, fontSize);
|
||||||
int start = 0;
|
int start = 0;
|
||||||
int end = 0;
|
int end = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user