Hi Team,
Hi Satyendra,
Hi Hafeez,
Please let me know if you need more details.
Hi Satyendra,
Hi Hafeez,
Satyendra
Hi Satyendra,
Document doc = new Document(getMyDir() + “DTS_6.5.0_SP3_WithBookmark_Markup.doc”);
DocumentBuilder builder = new DocumentBuilder(doc);PdfSaveOptions pdfSaveOptions = new PdfSaveOptions();
StringBuilder strBuilder = new StringBuilder();
strBuilder.append("\o “1-”).append(9).append("<font color=“PURPLE”>"");
strBuilder.append("\h");
strBuilder.append("\z");
strBuilder.append("\u");builder.insertBreak(BreakType.SECTION_BREAK_NEW_PAGE);
builder.moveToSection(0);
builder.startBookmark(“Table Of Contents”);
builder.write("");
builder.endBookmark(“Table Of Contents”);
pdfSaveOptions.getOutlineOptions().getBookmarksOutlineLevels().add(“Table Of Contents”, 1);Field myToc = builder.insertTableOfContents(strBuilder.toString());
myToc.update();doc.save(getMyDir() + “out.pdf”, pdfSaveOptions);
I do see that when I conveted test.docx to PDF using MS Word, then an extra blank page appears.
But the source document that I attached in a “.doc” and not ".docx"
I am sorry, but I am not able to understand why are you taking a docx example in case of a .doc.
Can you please help me understand this?
Hi Satyendra,
Any ETA available for this issue? Please share.
Satyendra
Hi Satyendra,
Hi Satyendra,
sec.PageSetup.SectionStart = SectionStart.NewPage;