Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
フラット化プロセスとは、文書から注釈が削除されたときに、その視覚的表現が保持されることを意味します。フラット化された注釈は依然として可視ですが、ユーザーやアプリによって編集できなくなります。これは、たとえば、文書に注釈を永久に適用したり、注釈を表示できない視聴者に注釈を可視化したりするために使用できます。指定されていない場合、エクスポートはすべての注釈をそのまま保持します。
このオプションが選択されると、注釈はエクスポートされたPDFにPDF標準の注釈として含まれます。
次のコードスニペットで使用されているflatteningAnnotationsメソッドを確認してください。
// For complete examples and data files, visit https://github.com/aspose-pdf/Aspose.PDF-for-.NET
private static void FlattenAnnotationFromPdf()
{
// The path to the documents directory
var dataDir = RunExamples.GetDataDir_AsposePdfFacades_Annotations();
// Create PdfAnnotationEditor
using (var annotationEditor = new Aspose.Pdf.Facades.PdfAnnotationEditor())
{
// Bind PDF document
annotationEditor.BindPdf(dataDir + "AnnotationsInput.pdf");
// Create FlattenSettings
var flattenSettings = new Aspose.Pdf.Forms.Form.FlattenSettings
{
ApplyRedactions = true,
CallEvents = false,
HideButtons = true,
UpdateAppearances = true
};
annotationEditor.FlatteningAnnotations(flattenSettings);
// Save PDF document
annotationEditor.Save(dataDir + "FlattenAnnotation_out.pdf");
}
}
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.