//
// This code is part of Document Solutions for Word demos.
// Copyright (c) MESCIUS inc. All rights reserved.
//
using System.IO;
using GrapeCity.Documents.Word;
using GrapeCity.Documents.Word.Layout;
namespace DsWordWeb.Demos
{
// This sample shows how to export a DOCX document to PDF/UA format with structure tags.
public class SaveAsPdfUA
{
public GcWordDocument CreateDocx()
{
GcWordDocument doc = new();
doc.Load(Path.Combine("Resources", "WordDocs", "JsFrameworkExcerpt.docx"));
return doc;
}
public static PdfOutputSettings GetPdfOutputSettings()
{
var settings = new PdfOutputSettings()
{
ExportStructureTags = true,
MarkAsPdfUa = true,
MissingDocumentTitle = "<document title placeholder>",
MissingShapeAlternativeText = "<alternative text placeholder>",
MissingHyperlinkScreenTip = "<hyperlink screen tip placeholder>"
};
return settings;
}
}
}