Does the pdf-template processor support any other font besides Courier?
Whenever I specify anything else than that font, I see: Font 'Verdana' with 'Cp1252' is not recognized ...and the java stack trace top 2 lines are: Toggle com.lowagie.text.DocumentException Exception Class com.lowagie.text.DocumentException Message Font 'Verdana' with 'Cp1252' is not recognized. Servlet Stack Trace (284 method calls) Class Name Method Name File Name Line Number com.lowagie.text.pdf.BaseFont createFont N/A com.lowagie.text.pdf.BaseFont createFont N/A I am running this on Mac. What directory is the processor looking for fonts? What format is supported (TrueType, Type 1)? What encoding is supported? The example shows the folowing inputs: model; config and instance. What is the "config" for? <p:processor name="oxf:pdf-template"> <p:input name="instance" href="#instance#xpointer(/*/document/*)"/> <p:input name="model"> <config> <template href="oxf:/examples/pdf/pdf-template/schema/dmv14.pdf"/> <field left-position="108.5" top-position="138" spacing="15.9" font-family="Courier" font-size="14" size="20" ref="/form/name/last-name"/> </config> </p:input> <p:input name="config"> <config/> </p:input> <p:output name="data" id="out"/> </p:processor> Thank you A. -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
I gogled out one answer - the Mac fonts will not work:
http://www.qaix.com/java-programming/63-950-fonts-on-macos-read.shtml Still I would like to know what the processor "config" input is expecting? I will post more about Mac fonts as I find out. A. On Dec 12, 2005, at 6:08 PM, Alexander Zatko wrote: > Does the pdf-template processor support any other font besides > Courier? Whenever I specify anything else than that font, I see: > > Font 'Verdana' with 'Cp1252' is not recognized > > ...and the java stack trace top 2 lines are: > > Toggle com.lowagie.text.DocumentException > Exception Class com.lowagie.text.DocumentException > Message Font 'Verdana' with 'Cp1252' is not recognized. > Servlet Stack Trace > (284 method calls) > Class Name Method Name File Name Line Number > com.lowagie.text.pdf.BaseFont createFont N/A > com.lowagie.text.pdf.BaseFont createFont N/A > > I am running this on Mac. What directory is the processor looking for > fonts? What format is supported (TrueType, Type 1)? What encoding is > supported? > > The example shows the folowing inputs: > model; config and instance. What is the "config" for? > > <p:processor name="oxf:pdf-template"> > <p:input name="instance" > href="#instance#xpointer(/*/document/*)"/> > <p:input name="model"> > <config> > <template > href="oxf:/examples/pdf/pdf-template/schema/dmv14.pdf"/> > <field > left-position="108.5" top-position="138" > spacing="15.9" font-family="Courier" > font-size="14" size="20" > ref="/form/name/last-name"/> > </config> > </p:input> > <p:input name="config"> > <config/> > </p:input> > <p:output name="data" id="out"/> > </p:processor> > > Thank you > > A. > -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
In reply to this post by Alexander Žaťko
Check out the iText doc:
http://itextdocs.lowagie.com/tutorial/fonts/getting/ You should be able to use any of those 14 fonts. The processor is currently not looking into any directory for any external fonts. Also check out the (very straightforward) source code of the processor: http://tinyurl.com/bhtlv -Erik Alexander Zatko wrote: > Does the pdf-template processor support any other font besides Courier? > Whenever I specify anything else than that font, I see: > > Font 'Verdana' with 'Cp1252' is not recognized > > ...and the java stack trace top 2 lines are: > > Toggle com.lowagie.text.DocumentException > Exception Class com.lowagie.text.DocumentException > Message Font 'Verdana' with 'Cp1252' is not recognized. > Servlet Stack Trace > (284 method calls) > Class Name Method Name File Name Line Number > com.lowagie.text.pdf.BaseFont createFont N/A > com.lowagie.text.pdf.BaseFont createFont N/A > > I am running this on Mac. What directory is the processor looking for > fonts? What format is supported (TrueType, Type 1)? What encoding is > supported? > > The example shows the folowing inputs: > model; config and instance. What is the "config" for? > > <p:processor name="oxf:pdf-template"> > <p:input name="instance" href="#instance#xpointer(/*/document/*)"/> > <p:input name="model"> > <config> > <template > href="oxf:/examples/pdf/pdf-template/schema/dmv14.pdf"/> > <field > left-position="108.5" top-position="138" > spacing="15.9" font-family="Courier" font-size="14" > size="20" > ref="/form/name/last-name"/> > </config> > </p:input> > <p:input name="config"> > <config/> > </p:input> > <p:output name="data" id="out"/> > </p:processor> > > Thank you > > A. -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Erik,
Thanks for the info. A. On Dec 13, 2005, at 6:39 AM, Erik Bruchez wrote: > Check out the iText doc: > > http://itextdocs.lowagie.com/tutorial/fonts/getting/ > > You should be able to use any of those 14 fonts. The processor is > currently not looking into any directory for any external fonts. > > Also check out the (very straightforward) source code of the processor: > > http://tinyurl.com/bhtlv > > -Erik > > Alexander Zatko wrote: >> Does the pdf-template processor support any other font besides >> Courier? Whenever I specify anything else than that font, I see: >> Font 'Verdana' with 'Cp1252' is not recognized >> ...and the java stack trace top 2 lines are: >> Toggle com.lowagie.text.DocumentException >> Exception Class com.lowagie.text.DocumentException >> Message Font 'Verdana' with 'Cp1252' is not recognized. >> Servlet Stack Trace >> (284 method calls) Class Name Method Name File Name >> Line Number >> com.lowagie.text.pdf.BaseFont createFont N/A >> com.lowagie.text.pdf.BaseFont createFont N/A >> I am running this on Mac. What directory is the processor looking for >> fonts? What format is supported (TrueType, Type 1)? What encoding is >> supported? >> The example shows the folowing inputs: >> model; config and instance. What is the "config" for? >> <p:processor name="oxf:pdf-template"> >> <p:input name="instance" >> href="#instance#xpointer(/*/document/*)"/> >> <p:input name="model"> >> <config> >> <template >> href="oxf:/examples/pdf/pdf-template/schema/dmv14.pdf"/> >> <field >> left-position="108.5" top-position="138" >> spacing="15.9" font-family="Courier" >> font-size="14" size="20" >> ref="/form/name/last-name"/> >> </config> >> </p:input> >> <p:input name="config"> >> <config/> >> </p:input> >> <p:output name="data" id="out"/> >> </p:processor> >> Thank you >> A. > > > -- > You receive this message as a subscriber of the > [hidden email] mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Free forum by Nabble | Edit this page |