-
1. Re: pdf form 'filling and generic overlay proposition
kukeltje Jan 26, 2007 1:05 PM (in response to kukeltje)hmmm... the form should also have a src attribute, but it might be easier (implementation wise) to add the src attribute to the document element and only allow form or overlay as it's children when this attribute is present (no idea what the behaviour will be if there also is a p:paragraph anywhere in this)
-
2. Re: pdf form 'filling and generic overlay proposition
kukeltje Jan 26, 2007 1:29 PM (in response to kukeltje)another option for the overlay is to have the overlay element take the page, top and left attributes and allow the two already existing outputText and image tage inside it.
<p:overlay page="1" top="100" left="100"> <p:outputtText >Hi, I'm overlayed text\n#{user.name} did this</p:text> </p:overlay> <p:overlay page="3" top="225" left="150"> <p:image resource="/jboss.jpg" />
I think I'll prefer that appoach and see if I get it working. (I need something on monday :-)) -
3. Re: pdf form 'filling and generic overlay proposition
norman.richards Jan 26, 2007 2:11 PM (in response to kukeltje)Send any code you create. I don't think I'll be able to get to it until after 1.1.5 is released.
-
4. Re: pdf form 'filling and generic overlay proposition
kukeltje Jan 26, 2007 5:12 PM (in response to kukeltje)I will. No problem getting to it after 1.1.5. We can include anything we develop temporarily in our own version.
I've been digging into the overlay stuff and the way the current implementation is done (clean and compliments btw, I got it real quick) is not usable for overlay. The PdfStamper that needs to be used dos not work with paragraphs, pages etc at all. It is at a much lover level. Completely new tags have to be defined.
I will initially focus on just adding simple text and images to specified pages at a specific position with a certain fontfamily and fontsize (this allready works btw) but should be made a little better). Adding a watermark to each page or pagenumber or anything like that is skipped for now since it makes less sense imo.
Filling out forms is the next thing and is also real simple. I'll send al the code I have over the weekend. -
5. Re: pdf form 'filling and generic overlay proposition
norman.richards Jan 27, 2007 11:32 AM (in response to kukeltje)Great. Just attach patches to the appropriate JIRA issues.