Currently, the LtdDocumentOptions class contains no extra options.
using Leadtools.Document.Writer;using Leadtools;using Leadtools.Codecs;public void LtdDocumentOptionsExample(){var inputFileName = Path.Combine(LEAD_VARS.ImagesDir, "test_2.docx");var outputFileName = Path.Combine(LEAD_VARS.ImagesDir, "test_Example_password.pdf");var ltdFileName = Path.Combine(LEAD_VARS.ImagesDir, "Example2.ltd");// Check if the LTD file exists, if so, delete it so we start a new sessionif (File.Exists(ltdFileName))File.Delete(ltdFileName);// Get the number of pagesint pageCount;using (var codecs = new RasterCodecs()){codecs.Options.RasterizeDocument.Load.Resolution = 300;pageCount = codecs.GetTotalPages(inputFileName);}// Loop through the pages and add them to the LTDfor (var pageNumber = 1; pageNumber <= pageCount; pageNumber++){AppendToLtd(inputFileName, pageNumber, ltdFileName);}// Create a new instance of the LEADTOOLS Document Writervar docWriter = new DocumentWriter();// Set the PDF options to be PDF/A with Image/Textvar pdfOptions = docWriter.GetOptions(DocumentFormat.Pdf) as PdfDocumentOptions;pdfOptions.DocumentType = PdfDocumentType.PdfA;pdfOptions.ImageOverText = true;docWriter.SetOptions(DocumentFormat.Pdf, pdfOptions);// Now convert the LTD file we generated to PDFDebug.WriteLine("Converting LTD to PDF");docWriter.Convert(ltdFileName, outputFileName, DocumentFormat.Pdf);}private void AppendToLtd(string inputFileName, int pageNumber, string ltdFileName){// This assumes we are in a separate session than the main program, so create// a new instance of the RasterCodecs and DocumentWriter objects we needvar docWriter = new DocumentWriter();using (var codecs = new RasterCodecs()){codecs.Options.RasterizeDocument.Load.Resolution = 300;// Create a new (or append if the file exists) LTD documentdocWriter.BeginDocument(ltdFileName, DocumentFormat.Ltd);// Load the page as SVG document and as Raster imageDebug.WriteLine("Loading page {0} ...", pageNumber);using (var svgDocument = codecs.LoadSvg(inputFileName, pageNumber, null))using (var image = codecs.Load(inputFileName, pageNumber)){// Add the page, notice we will be using image/text featurevar page = new DocumentWriterSvgPage();page.SvgDocument = svgDocument;page.Image = image;Debug.WriteLine("Adding page {0} ...", pageNumber);docWriter.AddPage(page);}}// Finally finish writing the PDF file on diskdocWriter.EndDocument();}static class LEAD_VARS{public const string ImagesDir = @"C:\LEADTOOLS22\Resources\Images";}