开发者

Dynamically Generate Editable PDF

开发者 https://www.devze.com 2022-12-18 16:16 出处:网络
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.

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 an开发者_开发知识库d 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.)

0

精彩评论

暂无评论...
验证码 换一张
取 消