문제

Is there a way to create an editable PDF programmatically? By editable, I mean you can click in a text area and type in your name, that kind of thing.

I'm using Ruby and have found PrinceXML and Princely to be nice projects. I'm wondering if they could do that?

도움이 되었습니까?

해결책

Prince doesn't mention forms in the documentation, and renders forms as static drawings, so I doubt it.

pdfTeX can do it with the hyperref package. Here's a tutorial.

Example:

\usepackage{hyperref}
\begin{Form}
\TextField[backgroundcolor={1 1 0},value=can do forms]{hyperref}
\end{Form}

It looks like this:

screenshot http://grab.by/23nP

(Of course, then you're using TeX instead of whatever reports library you like. I'm sure there's an alternative.)

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top