Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
El proceso de aplanamiento significa que cuando una anotación se elimina de un documento, su representación visual se mantiene intacta. Una anotación aplanada sigue siendo visible pero ya no es editable por tus usuarios o por tu aplicación. Esto se puede usar, por ejemplo, para aplicar anotaciones permanentemente a tu documento o para hacer anotaciones visibles a los espectadores que de otro modo no pueden mostrar anotaciones. Si no se especifica, una exportación mantendrá todas las anotaciones tal como están.
Cuando se selecciona esta opción, tus anotaciones se incluirán en tu PDF exportado como anotaciones estándar de PDF.
Consulta cómo se utiliza el método flatteningAnnotations en el siguiente fragmento de código.
// 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.