<BUG>stream.newLineAtOffset(textX, textY);stream.showText(text);</BUG><CONTEXT>public static void addTextSimple(PDPageContentStream stream, PdfTextStyle textConfig, float textX, float textY, String text) {try {stream.setFont(textConfig.getFont(), textConfig.getFontSize());stream.setNonStrokingColor(textConfig.getColor());stream.beginText();<extra_id_0>} catch (Exception e) {LOG.warn("Could not add text: " + e.getClass() + " - " + e.getMessage());}</CONTEXT>
stream.setTextMatrix(new Matrix(1,0,0,1, textX, textY));stream.showText(text);