We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Aspose PDF allow the insertion of tags inside page?

Hello,

I was wondering if Aspose PdF permits to insert in each page a tag that's transparent to the pdf viewer... I need it for automation control, since I merge different files and I've got a loggin file, I wish to check document 1 start at 1, finish at page 3, document 2 start at 4 ends at 5 and so on...

Is it possible? Thanks

Paolo

Hi Paolo,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thank you for considering Aspose.Pdf for .NET.

I am not very clear about your requirement. Could you please elaborate on your requirement? It would be better and easier to understand if you can create a document manually and share with us to show your requirement and we will let you know if that can be implemented programmatically using Aspose.Pdf for .NET.

Thank You & Best Regards,

Hi Paolo,


I am not sure if it will help or not but just in case, do you think adding a transparent text object inside a PDF document can fulfill your requirement. If so is the case, please try using the following code snippet.

[C#]

Pdf pdf = new Pdf();
Aspose.Pdf.Generator.Section section = pdf.Sections.Add();
// create text paragraph
Text text1 = new Text(“Hidden Text Tag”);
// set the opacity of text paragraph to 0.
text1.Opacity = 0.0F;
section.Paragraphs.Add(text1);
// save the PDF file
pdf.Save(“d:/pdftest/HiddenTag.pdf”);