I need to create a PDF from DITA with annotations embedded. Are there hooks in PDF2 to enable this?
You should read the docs of the args.draft parameter (DITA-OT - Common Parameters) and the Generating PDF comments using args.draft=yes XML forum post.
Related
I am working on a prototype using iText7 for C#. The PDF I am using is an XFAForm PDF and was created in Adobe Live Cycle Designer. From my research, XFAForms do not support annotations. I was going to add an annotation to the field with a link.
I want to be able to edit the value in a field to include a URL. For example,
Name : Marc
should be:
Name : Marc https://www.google.com
I am able to modify the value in this field, but no luck adding a URL that is clickable. I have tried the following:
element.Add(new XAttribute("href", injectedURL)); element is an XElement
Injecting HTML as the new value with a link
I was thinking about reading the XML, parsing it and injecting the URL in the XML and then writing it back to the PDF, but I do not feel that is a good solution.
Has anyone been able to do this?
I am wondering how I can generate a pdf in an extbase extension. What I wanting to do is the following: On saving a record in the backend also a pdf with the data of my record should be generated an saved in the fileadmin for instance.
I have found frontend solutions for generating pdfs with special fluid viewhelpers primarily, but I need it in the backend when the editor saves a record.
Are there any common solutions in extbase for this?
Generating PDFs has no common solution in TYPO3.
Alas you have the option to hook in most actions to use an additional library to generate a PDF of the data you are processing.
You could find more information here
Does DITA-OT support generation of PDF output with CSS customizations? I think it supports PDF generation using Apache FOP.
I generate both HTML and PDF output and want to use CSS.
Thanks...
The DITA Open Toolkit does not come with default support for using CSS to create PDF. But it can be done. Here is general info on a few ways to do it, to give you an idea:
If you have a late-model version of the Oxygen XML editor, you can use the transformation scenario called DITA Map PDF - based on HTML5 & CSS. This is probably the easiest way to go. If you want to have this capability on a server, there is an extra charge. See Oxygen PDF Chemistry for more info: https://www.oxygenxml.com/chemistry-html-to-pdf-converter.html
The XML Rocks DITA OT plugin, which requires a commercial PDF processor, one of these: Antenna House Formatter, PDFReactor, Vivliostyle or Prince. https://github.com/xmlrocks/dita-ot-pdf-css-page
Do it yourself. One way I have done this is to create normal XHTML output from the DITA OT, and then use a PDF processor and CSS to transform the XHTML to PDF. I have used Antenna House, but other commercial PDF processors (see above) can work also. You should make the XHTML all in one file (all DITA topics merged into one file) by adding this attribute to the <map> element: <map chunk="to-content">
Novice in DITA or XSL. I am faced with a challange of building documentation for API documentation. Currently I am able to product the HTML and CHM help using Sandcastle on a C# Assembly and an XML. I have a requirement to to produce it in DITA. Any leads?
Thanks
If I have understood correctly, there is a way to migrate HTML to DITA with DITA Open Toolkit. Would this be enough? http://dita-ot.sourceforge.net/1.5.2/readme/DITA-h2d.html
I wanted to create a PDF with a Text Annotate. I came across the 3rd Party library called libharu. Can anybody tell me how to create a PDF with a text annotate using this library or any documentation related to it.
The libharu site has an example of annotation in C.