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

Free Support Forum - aspose.com

How to apply Title and Bookmarks - Tab order to new pdf

Hi,

How to apply Title and Bookmarks , Tab order to new pdf which need to be passed in Acrobat rules.

thanks,

Naresh

Hi ,

Can you please guide us/redirect to any url, how to setTab order while creating the new pdf document using Aspose.pdf.

Thanks in advance.

Naresh

Hi Naresh,


Thanks for contacting support and sorry for the delayed response.

Please visit the following link for required information on


In case I have not properly understood your requirement or you have any further query, please feel free to contact.

Hi,

Thanks for response.

We are not taking about tab stops.

We have requirement like while creating PDF using Aspose.Pdf , we have to set the Title of Pdf document and Taborder , Primary language options.These features are need to passed in PDF Accessability checker.

We are using the below options to set the Title option but its not appending Title of PDF.Please see the attachment.

Aspose.Pdf.Generator.Pdf pdf1 = new Aspose.Pdf.Generator.Pdf();
pdf1.Title = "Title1";
pdf1.Subject = "TaggedPDF";
pdf1.Title = "TaggedPDF";
pdf1.Keywords = "TaggedPDF";
pdf1.Author = "TaggedPDF";

Is Aspose is able to support to these feautres or not.if yes please guide us how can we achieve this.

Thanks,

Naresh

naresh.dongari@gmail.com:
We have requirement like while creating PDF using Aspose.Pdf , we have to set the Title of Pdf document and Taborder , Primary language options.These features are need to passed in PDF Accessability checker.
Hi Naresh,

Thanks for sharing the details.

I am afraid the requested features are currently not supported. However for the sake of implementation, I have logged these requirements in our issue tracking system under New Features list as PDFNEWNET-35409.
We will further investigate this requirement in details and will keep you
updated on the status of a correction. <o:p></o:p>

We apologize for your inconvenience.

Hi Naresh,


Adding more to my previous comments, when I have used the following code snippet and when I have tried viewing the resultant file in Adobe Reader 10.1.4, I am able to see PDF title information. Please take a look over attached screenshot. So as per my understanding, the problem is related to accessibility verification.

[C#]

Aspose.Pdf.Generator.Pdf
pdf1 = new Aspose.Pdf.Generator.Pdf();<o:p></o:p>

pdf1.Title = "Title1";

pdf1.Subject = "TaggedPDF";

pdf1.Title = "TaggedPDF";

pdf1.Keywords = "TaggedPDF";

pdf1.Author = "TaggedPDF";

pdf1.Sections.Add(new Section());

pdf1.Sections[0].Paragraphs.Add(new Text("Hello World.."));

pdf1.Save(“c:/pdftest/PDFTitle.pdf”);

Hi,

Thanks for response.

Please use the PDFA1A as pdf conformance before saving the pdf.

Aspose.Pdf.Generator.Pdf pdf1 = new Aspose.Pdf.Generator.Pdf();<?xml:namespace prefix = "o" />

pdf1.Title = "Title1";

pdf1.Subject = "TaggedPDF";

pdf1.Title = "TaggedPDF";

pdf1.Keywords = "TaggedPDF";

pdf1.Author = "TaggedPDF";

pdf1.Sections.Add(new Section());

pdf1.Sections[0].Paragraphs.Add(new Text("Hello World.."));

//use this option

pdf1.Conformance = Aspose.Pdf.Generator.PdfConformance.PdfA1A;

pdf1.Save("c:/pdftest/PDFTitle.pdf");

Now check the same in properties, its missing the Title and remaining options.

In our requirement we have to set the conformance as PDFA1A.

Thanks,

Naresh

naresh.dongari@gmail.com:
Please use the PDFA1A as pdf conformance before saving the pdf.

//use this option

pdf1.Conformance = Aspose.Pdf.Generator.PdfConformance.PdfA1A;

Now check the same in properties, its missing the Title and remaining options.

In our requirement we have to set the conformance as PDFA1A.

Hi Naresh,


I
have tested the scenario and I am able to reproduce the same problem. For the
sake of correction, I have logged it in our issue tracking system as PDFNEWNET-35423. We
will investigate this issue in details and will keep you updated on the status
of a correction. <o:p></o:p>

We apologize for your inconvenience.

Hi Naresh,


As a workaround, you may consider using Document class to create the PDF file. During my testing with following code snippet, the title information is properly appearing in resultant file. However I am not sure if it will keep the accessibility features in the document (which you have reported in other forum threads).

[C#]

//open document<o:p></o:p>

Document pdfDocument = new Document();

//get particular page

Page pdfPage = pdfDocument.Pages.Add();

//specify document information

DocumentInfo docInfo = new DocumentInfo(pdfDocument);

docInfo.Title = "Title Of File";

docInfo.Subject = "Hello World PDF";

docInfo.Keywords = "TaggedPDF HelloWorld Title";

docInfo.Author = "Nayyer";

//create text fragment

TextFragment textFragment = new TextFragment("Hello World..");

textFragment.Position = new Position(100, 600);

// create TextBuilder object

TextBuilder textBuilder = new TextBuilder(pdfPage);

// append the text fragment to the PDF page

textBuilder.AppendText(textFragment);

// set the PDf compliance

pdfDocument.Convert("c:/pdftest/ConversionLog.xml", PdfFormat.PDF_A_1A, ConvertErrorAction.Delete);

//save document

pdfDocument.Save(“c:/pdftest/DocumentTitle_output.pdf”);

The issues you have found earlier (filed as PDFNEWNET-35423) have been fixed in Aspose.Pdf for .NET 10.0.0.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.