Hello,
Hi Patrick,
com.aspose.pdf.Document doc = new Document();<o:p></o:p>
doc.getPages().add();
FreeTextAnnotation annotation = new FreeTextAnnotation(doc.getPages().get_Item(1), new com.aspose.pdf.Rectangle(50, 600, 250, 650), new com.aspose.pdf.DefaultAppearance("Helvetica", 16, java.awt.Color.RED));
annotation.setContents("ABCDEFG");
annotation.getCharacteristics().setBorder(java.awt.Color.RED);
annotation.setFlags(AnnotationFlags.Print | AnnotationFlags.NoView);
doc.getPages().get_Item(1).getAnnotations().add(annotation);
doc.save("c:/Invisible_Annotation.pdf");
Hi Patrick,
//Page par page suivant
orientation<o:p></o:p>
Document pdf = new Document();
pdf.getPages().add();
FreeTextAnnotation annotation = new FreeTextAnnotation(pdf.getPages().get_Item(1), new com.aspose.pdf.Rectangle(50, 600, 250, 650), new com.aspose.pdf.DefaultAppearance("Helvetica", 16, java.awt.Color.RED));
annotation.setContents("ABCDEFG");
annotation.getCharacteristics().setBorder(java.awt.Color.RED);
annotation.setFlags(AnnotationFlags.Print | AnnotationFlags.NoView);
annotation.setHorizontalAlignment(HorizontalAlignment.Center);
annotation.setVerticalAlignment(VerticalAlignment.Center);
pdf.getPages().get_Item(1).getAnnotations().add(annotation);
pdf.save("c:/pdftest/WaterMarkVisible.pdf");