Re: FOP and acroform

2005-09-14 Thread Jeremias Maerki
No, because something like that is not implemented. If it were it would
be documented on the website.

It has been mentioned that at some point someone wrote an extension
element that allowed injecting raw PDF code into the output file which
allowed the creation of PDF forms if someone had a lot of knowledge
about the PDF file format. But even I can't find this extension anywhere.

You're welcome to implement a AcroForm extension yourself and to donate
it to the FOP project. I'm sure some people would be delighted.
Otherwise, you can try to use iText to create PDF forms.

On 14.09.2005 01:24:22 zhlu wrote:
 Can some one show me how to use FOP with fox tag to generate an AcroForm pdf
 file?


Jeremias Maerki


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: upgrading from 20.0.5 to the trunk

2005-09-14 Thread Sonja Löhr


That positioning was totally arbitrary, so I moved generate-id onto the
cell and everything is fine!

Thank you once more :-)
sonja



Am Dienstag, den 13.09.2005, 18:53 +0200 schrieb Jeremias Maerki:
 I should have realized from your snippets what was wrong. D'oh! The
 problem is that on certain FOs the id property is not properly
 processed, yet, and therefore not available to page-number-citation.
 This was properly shown in our test cases but not on our compliance page
 and I didn't remember, so I've updated the compliance page with the
 details (not live, yet):
 http://svn.apache.org/viewcvs?rev=280586view=rev
 
 ATM, you can't use an ID defined on table-row. Please try to move the id
 to the first table-cell in the row and it should work. I hope we'll have
 time to fix that eventually.
 
 On 13.09.2005 18:22:29 Sonja Löhr wrote:
  Am Dienstag, den 13.09.2005, 17:41 +0200 schrieb Jeremias Maerki:
   You can send the FO file to me directly, and I'll try to isolate the
   problem so I can create a simple, automatable test case for our
   collection.
  
   case it is not my fault!!
  The file is on its way ...
  
  
   
   On 13.09.2005 17:22:33 Sonja Löhr wrote:



 Can you provide an example? I can't reproduce the problem. Thanks.

Of course. 
Shall/May I attach the whole big fo file here so you could just plug it
in? Here are some snippets.

The index table of contents has its own page-sequence-master as it is in
two columns. 
In the pdf output, there is just one question mark instead of a number.
I already simplyfied index to exclude problems with overflow or so. 

fo:page-sequence language=de hyphenate=false
initial-page-number=3 master-reference=inhaltsverzeichnis

fo:static-content flow-name=toc-odd-after
fo:block padding-top=0.6cm text-align=end
fo:page-number/
/fo:block
/fo:static-content

fo:static-content flow-name=toc-even-after
fo:block padding-top=0.6cm text-align=start
fo:page-number/
/fo:block
/fo:static-content

fo:flow flow-name=xsl-region-body

fo:block space-after=1.5cm font-size=20ptInhalt/fo:block
fo:block
fo:page-number-citation ref-id=N1005A/ :
   Bartschneider 
/fo:block
fo:block
fo:page-number-citation ref-id=N1006A/ :
  Dampfbügeleisen 
/fo:block
fo:block
fo:page-number-citation ref-id=N1007A/ :
ProStyle Bügeleisen 
/fo:block
[and so on]


/fo:flow
/fo:page-sequence



fo:page-sequence hyphenate=true master-reference=content
[A long, long table with table-header, some of the table rows 
(those
containing the group name) carry the ids for the page-number-citation:]

fo:table-row height=2.2cm id=N1005A
fo:table-cell border=0.2mm solid black 
display-align=center number-columns-spanned=8
fo:block start-indent=3.6cm 
font-weight=bold  font-size=24pt display-align=center
space-before=0.8cm   Bartschneider 
/fo:block
/fo:table-cell
/fo:table-row


[...]
/fo:page-sequence
   snip/
   
   
   Jeremias Maerki
   
   
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
   
  -- 
  Sonja Löhr [EMAIL PROTECTED]
  
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 Jeremias Maerki
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
-- 
Sonja Löhr [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: AW: Re: FOP and acroform

2005-09-14 Thread Henry Lu

Sascha, could you send me your examples?

-Henry



Sascha Schmidt wrote:


Hi,

Florian Hecht has written in seminar paper about such an extension, but it's in 
German:

http://www.ipd.uni-karlsruhe.de/~gelhausen/sud/Eine%20Formularerweiterung%20f%FCr%20XSL-FO.pdf

I'm using this extension experimentally to transform RTF forms into PDF forms. ;-) 


Cheers,
Sascha

 


No, because something like that is not implemented. If it were it would
be documented on the website.

It has been mentioned that at some point someone wrote an extension
element that allowed injecting raw PDF code into the output file which
allowed the creation of PDF forms if someone had a lot of knowledge
about the PDF file format. But even I can't find this extension anywhere.

You're welcome to implement a AcroForm extension yourself and to donate
it to the FOP project. I'm sure some people would be delighted.
Otherwise, you can try to use iText to create PDF forms.

On 14.09.2005 01:24:22 zhlu wrote:
gt; Can some one show me how to use FOP with fox tag to generate an AcroForm 
pdf

gt; file?


Jeremias Maerki


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

   



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Invalid XML character (Unicode: 0x0)

2005-09-14 Thread Greg Stark
Mike  J.Pietschmann,
Thank you for your help.  J. was right, the editor I use had botched the
file.  I used babelpad which showed the corruption.  I fixed the text and it
runs now.  

Thank you.
Greg Stark

-Original Message-
From: Mike Ferrando [mailto:[EMAIL PROTECTED] 
Sent: Saturday, September 10, 2005 7:31 PM
To: fop-users@xmlgraphics.apache.org; [EMAIL PROTECTED]
Subject: Re: Invalid XML character (Unicode: 0x0)

Greg S.,
Those line numbers in this case (of an illegal character) are
approximations.

I would suggest that you save your original document.

Use a copy of your document.

Cut the first 100 lines. (It has to be well formed of course.) Send it
through.
Keep going until your are close to the error.

If you can take the short cut, then get a freeware unicode aware program to
check your document. I use babelpad.

Open the document in Babelpad.
ToolsDocument analysis

This will give you a line and position that is exact.

You can do this alot of ways, but these are my suggestions. I assume that
you have your encodings correct in your stylesheet for output UTF-8.

Mike Ferrando
Library Technician
Library of Congress
Washington, DC
202-707-4454

--- Greg Stark [EMAIL PROTECTED] wrote:

 fop-users,
 How can I resolve this?  Is there a way on Solaris to search and 
 replace x0 characters.  This is an XSLT question, I am asking here 
 because it is part of my FOP process before the file is translated to 
 fo and then a PDF.
 
 The file saved as UTF-8 contains Chinese characters.  I go to that 
 location, and there is no null character there!  I can replace spaces 
 before the
 location with   and this seems to move the message to a new
 location.
 No pattern has emerged yet.
 
 /usr/local/FOP/xalan.sh -v
  Xalan Version Xalan Java 2.2.D11, 
 
 /usr/local/FOP/xalan.sh -in maporder2153450ZHSS.xml -XSL 
 ZHrsShip_data.xsl -out tmp2.xml [Fatal Error] 
 ZHrsShip_data.xsl:420:95: An invalid XML character
 (Unicode:
 0x0) was found in the element content of the document.
 file:///XMLFOP/rsship/ZHrsShip_data.xsl; Line 420; Column 95; XSLT 
 Error
 (javax.xml.transform.TransformerConfigurationException):
 javax.xml.transform.TransformerException:
 org.xml.sax.SAXParseException: An
 invalid XML character (Unicode: 0x0) was found in the element content 
 of the document.
 
   ZHrsShip_data.xsl file available on request.
 
 I appreciate your time and help.
 Thank you very much.
 
 Greg Stark gstark at electrorent dot com
 
 
 

-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 





__
Click here to donate to the Hurricane Katrina relief effort.
http://store.yahoo.com/redcross-donate3/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]