0

I have a PDF document that was obtained by converting a XSL-FO document to PDF using a XSL-FO to PDF render engine called fonet.

To convert XSL-FO document to PDF I did as explained here.

Now, I am trying to get all the fields in the PDF file using ITextSharp. To do this I proceed as explained here. However, in line af.Fields it returns 0 fields. Why?

Willy
  • 9,848
  • 22
  • 141
  • 284

1 Answers1

0

fonet does not support forms. If you were to search through their documentation for the term 'form' you would find exactly 1 match.

In the sentence:

A variety of overloaded forms of Render are available.

If however you are already using iText, then why not simply use a tool like apache XSLT to convert your XSL-FO into HTML? Then you can use pdfHTML which converts HTML to PDF.

Joris Schellekens
  • 8,483
  • 2
  • 23
  • 54
  • Read [this chapter from the official documentation](https://developers.itextpdf.com/content/zugferd-future-invoicing/7-creating-pdf-invoices-comfort) to discover a Java example of what Joris is explaining. – Bruno Lowagie Jan 03 '18 at 15:17
  • Or choose an XSL FO engine that supports PDF Forms and not try a strange FO to HTML conversion which would still be missing form fields – Kevin Brown Jan 04 '18 at 03:56
  • @KevinBrown Do you know any XSL FO engine to convert to PDF that supports PDF Forms and free? – Willy Jan 04 '18 at 08:43