Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
Proses pemadatan berarti ketika anotasi dihapus dari dokumen, representasi visualnya tetap utuh. Anotasi yang dipadatkan masih terlihat tetapi tidak lagi dapat diedit oleh pengguna Anda atau oleh aplikasi Anda. Ini dapat digunakan, misalnya, untuk menerapkan anotasi secara permanen ke dokumen Anda atau untuk membuat anotasi terlihat oleh pemirsa yang sebaliknya tidak dapat menampilkan anotasi. Jika tidak ditentukan, ekspor akan mempertahankan semua anotasi seperti adanya.
Ketika opsi ini dipilih, anotasi Anda akan disertakan dalam PDF yang diekspor sebagai anotasi standar PDF.
Periksa bagaimana metode flatteningAnnotations yang digunakan dalam cuplikan kode berikut.
// 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.