ITEXT: Warum erscheinen meine Kugelpunkte als Striche anstelle der Standardkugeln in PDF?Java

Java-Forum
Anonymous
 ITEXT: Warum erscheinen meine Kugelpunkte als Striche anstelle der Standardkugeln in PDF?

Post by Anonymous »

Ich habe ein Problem, bei dem ich, wenn es eine ungeordnete Liste in dem HTML-Inhalt gibt, den ich als Elemente analysiere und in die PDF-Zelle fülle, alles andere als die Kugelpunkte angezeigt wird, die als Striche erscheinen (- ). Was könnte das verursachen? < /P>

Code: Select all

 ByteArrayOutputStream baos = new ByteArrayOutputStream();
Document document = new Document(PageSize.A4, 40, 40, 40, 40);
PdfWriter writer = PdfWriter.getInstance(document, baos);
document.open();
document.add(buildContent());
document.close();

// method that should provide content to the document.

public PdfPTable buildContent() throws IOException {
InfoList infoList = infoListInstance.get();
PdfPTable table = new PdfPTable(2);
for (InfoListMessage message
: infolistList.getMessages()) {
renderMessageMetadata(message, table);
renderMessageContent(message, table);
}
return table;
}

public void renderMessageContent(
InfoListMessage message,
PdfPTable table) throws IOException {

PdfPCell cell = new PdfPCell();

for (Element e : XMLWorkerHelper.parseToElementList(message.getContent(), null)) {
cell.addElement(e);
}
table.addCell(cell);
}

[list]
[*]document2.txt.txt (23 B)
[*]document1.txt.txt (12 B)
[/list]

// Methode, bei der das Problem auftritt und die Ausnahme in die für die Loop-Zeile
geworfen wird

Code: Select all

how to solve above issue table and cell approach only how to get unorder list in place of dashes i want  bullet points

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post