You can convert a PDF document to HTML file with Aspose.PDF for .NET API as explained over Convert PDF File into HTML Format. Then you can edit HTML document with Aspose.HTML for .NET API by using below code snippet. After editing the HTML file, you may convert it to a PDF document as explained over HTML to PDF Conversion.
About editing the HTML file, you can edit the DOM tree by attaching new elements, editing attributes and properties already existing elements or just removing them from the DOM tree.
using (var document = new Aspose.Html.HTMLDocument())
var body = document.Body;
// Create paragraph element
var p = (HTMLParagraphElement)document.CreateElement("p");
// Set custom attribute
// Create text node
var text = document.CreateTextNode("my first paragraph");
// Attach text to the paragraph
// Attach paragraph to the document body
Along with method AppendChild you can also use the methods RemoveChild and ReplaceChild to edit an existing document content. If you still find any problem, then please elaborate ‘Dynamic Content’ while sharing this content along with expected output, so that we may proceed further to help you out.