How to add custom properties to PDF document in Jasper Reports? - jasper-reports

I need to put some custom properties into PDF document. Is possible to do that on JRPdfExporter class or somewhere else (filler etc) ? I can't find this.
Update:
I found only PdfStamper.setMoreInfo() method from iText. It works on exising pdf file only.

Related

How to make input in HTML for Telerik

I am doing export to PDF from HTML. I want to add input fields into my HTML code, but I don't know how.
I have tried a lot of combinations, but nothing is working.
Here is example what I tried:
enter image description here
You can use RadClientExportManager to export HTML content and elements to PDF. For example, see this demo - https://demos.telerik.com/aspnet-ajax/client-export-manager/functionality/export-html-elements/defaultcs.aspx.
Another approach to export HTML to PDF is to use the Kendo Drawing API.

How can I set the Navigation tab to bookmarks Panel and Page

I'm generating a report using itext and creating bookmarks in the report. I would like the PDF to open with the bookmark section expanded. I can modify the properties of the document AFTER generation so that this occurs, but the PDF is generated by a batch process, so I want to add this into the generation.
I've tried using addViewerPreference(PdfName, PdfObject) but cannot seem to get this setting to work. I am able to use it to set other initial properties, but not this one.
I'm guessing that either that property isn't supported at all, or is not supported in the version of itext I'm using. I'm still using 2.1.7.

StackOverFlowException while trying to generate multiple PDFs using iTextSharp

I'm using iTextSharp to generate PDF files from a console application. And I wanted to add a footer to the PDF report. Hence as suggested, I have created a Footer class which inherits PdfPageEventHelper class and overiding the OnEndPage event. Then I have the assigned the instance of this footer class to the PageEvent of my Writer object. Now everything works fine and the PDF file is getting generated.
But I face the problem when I want to generate multiple PDF files in a loop. When I try to create PDF files in a loop, I'm getting StackOverFlowException in the onEndPage event after generating few files. Any suggestions to get rid of this exception? Thanks in Advance.
Regards,
Muthiah

Parsing pdf to populate tableview

I am working on an app.The requirement is I need to populate the tableViewCells based on a pdf file.Like for example the headers of the table view will be a topic name from pdf and the contents will be the data inside the header.
I tried googling out but didn't find anything useful.Earlier I thought of parsing the pdf but this approach doesnot seems to be useful because i didn't find any pdf parser useful.
The last approach I thought is adding the contents in a plist file and parsing that plist,but i know this is not best way to do it.
So guys please suugest some better approach.
Thank you

iOS PDF Form Fields

I am using CGPDF to parse a PDF for an iPhone application. I can get as far as obtaining the dictionary object but for the life of me I cant seem to locate the form fields in the PDF.
How can I get a list of the text fields in a PDF Document?
After I find the text fields, how can i know the location for each?
example: text field "First Name" is on page one at coordinate:(20,30) with size:(100,25)
If you've succeeded in getting to the Page dictionary, then try and check out the 'Annots' Array. The Array should contain a Dictionary entry for each Text field in the document. Each Dictionary entry should contain several entries such as 'rect' (among others) that will contain the coordinates of the field on the page.
If you have acrobat pro, a great way to browse the PDF document structure is to use 'Preflight' (Under the advanced menu). Once you have preflight running click on the 'options' button in the top right of the dialog and click on 'browse internal PDF structure' you can poke around here to see how your PDF is laid out.
You can also find additional info on the 'Annots' Array entry in the Adobe PDF Reference, Sixth Edition, version 1.7 , section 8.4.1 "Annotation Dictionaries".
hope that helps.
Annot array does not contain textfields rather it contain annotation objects.