Hello I notice some problem with default save compared document to PDF.
It looks like PDF always export as “All markup” (compared to word). That produce some “first look” inconsistency like that:
To reproduce this you can use following code:
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
builder.writeln("paragraph1");
builder.writeln("paragraph2");
Document doc1 = new Document();
DocumentBuilder builder1 = new DocumentBuilder(doc1);
builder1.writeln("paragraph1 paragraph2");
doc.compare(doc1, "sd", new Date());
doc.save("a.docx");
doc.save("a.pdf");
Is there any option to control how PDF is generated?