SVG Renderer and Fonts

2014-12-10 Thread William Velasquez
Hi list, a short question:

Is there any way to select fonts when using the SVG Renderer?

Thanks for your advice,



William David Velásquez Ramírez.
Director de Investigación y Desarrollo
Medellín: (574) 4447292
   Bogotá:   (571) 3058949
   Móvil:  (57) 311 709 8421
   wvelasq...@visiontecnologica.com 
   Skype: williamvelasquez
  
AVISO LEGAL: La información contenida en este e-mail es CONFIDENCIAL y sólo 
puede ser utilizada por la persona o la compañía a la cual está dirigido. Si 
usted no es el destinatario, el uso indebido de esta información está prohibido 
y es sancionado por la ley. Si por error recibe este mensaje, le agradecemos 
borrarlo e informarle al emisor. Publicidad No S*P*A*M*  No es nuestra 
intención generar correo NO DESEADO.  Si desea ser retirado de nuestra lista de 
distribución, responda este mensaje a su emisor  o al correo 
conta...@visiontecnologica.com con el asunto Borrar.




-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Border problem with dynamic content

2008-08-18 Thread William Yu

I'm fairly new to FOP and I have a problem I haven't been able to solve.  My
goal is to have rectangular (8X10) border (top, bottom, left right) on every
single page of my document regardless if the content will fill up the page
or not. The problem I'm having is that border basically stops when the
content ends on subsequent pages.  I can not predict the amount of data that
will coming from an XML file so the content size will vary. I would like the
border to extend to the bottom of every page, even if the content does not
fill up the whole page.

Below is example of my code for your review.
fo:table table-omit-header-at-break=false
table-layout=fixed
height=100%
   width=18cm
   border-collapse=separate
   border-style=solid
   border-width=2pt
   border-color=black
   border-before-width=2pt
   border-before-width.conditionality=retain
   border-after-width=2pt
   border-after-width.conditionality=retain
   fo:table-body
   fo:table-row
   fo:table-cell
   fo:block
   xsl:for-each select=//*
   NAME: xsl:value-of select=name()/
   xsl:if test=count(node()) = 1
VALUE: xsl:value-of select=node()/
/xsl:if
xsl:if test=not(count(node()) = 1)
LENGTH: xsl:value-of select=count(node())/
/xsl:if
!--VALUE: xsl:value-of
select=node()[(string(.))]/ --
fo:block /
/xsl:for-each
/fo:block
/fo:table-cell
/fo:table-row
/fo:table-body
/fo:table
 
Thanks in advance,
William

-- 
View this message in context: 
http://www.nabble.com/Border-problem-with-dynamic-content-tp19030648p19030648.html
Sent from the FOP - Users mailing list archive at Nabble.com.


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



Re: basic-link internal-destination wrong page

2007-11-19 Thread william
Thanks for looking at it with me. Not meaning to be rude, but I won't be 
sending you any FO file. Please follow my reasoning below:


I've tried the fo with 0.20.5 and it's working fine as well.
And as you've also checked with 0.92beta and 0.93, so now I'll try to 
have a look at the modified version of our 0.92beta.
I'll keep you posted if any findings might have caused this, for your 
information.


Thank you,
William

Jeremias Maerki wrote:

I've done a quick test shows that this should work just fine in 0.93,
but it also works fine for me in 0.92beta.

Maybe you've made a mistake somewhere. So again, please attach a
(preferably small) FO file that demonstrates your problem.

Jeremias Maerki



On 19.11.2007 11:15:58 wliem wrote:
  

Thanks Jeremias,

It happens that the basic-link points to page 1 in the next page-sequence
rather than the first page.

Table of Content
Introduction  1
Content ...2

###
  Actual Content of Page 1
  abcdef

  Actual Content of Page 2
  ghijkl

  Another Content with Page number set to 1
  mnopqrs


It happens when I click Introduction, it links to 'mnopqrs' instead of
'abcdef' even though the block id links to 'abcdef'.
I know that I have to follow on the version upgrade to find the best
solution. But do you have any idea which version has
started to accommodate this?

Many thanks,
wliem



We have no idea what you hacked into your customized version. You'd
better try to work with standard XSL-FO than to coerce FOP into doing
what you expect. Maybe you should start by explaining the problem you'd
like solved in the first place. It could be that you simply don't know
about some funny little detail that would have solved your problem
easily. Attach a (preferably small) FO file that demonstrates the
problem. That's the easiest way to get us to look into a problem.
Otherwise, you just get some not really helpful answers like mine here.
:-)

BTW, I've explained it once before last week: It's generally a bad/risky
idea to hack some private functionality into FOP and not publish it.
Mainstream FOP development goes on and you may lose your investment in
your code because suddenly, you can't easily upgrade anymore. Please
work with us and we'll find the best solution together. That way you can
protect your investments.

I know, sometimes way may not be as responsive as one might wish. But if
that happens, just keep bugging us. An issue may simply have slipped
through the cracks.

And yes, please upgrade from 0.92beta. ;-) Especially, since we have
full support for internal destinations now.

Jeremias Maerki



On 19.11.2007 04:35:32 william wrote:
  

Hi,

We're currently using 0.92beta. We have done some customization to the
fop version (in case you offer me to upgrade)

The problem that I have currently is that:
For the purpose of the pdf output, I used initial-page-number = 1 to
reset the page number and start from 1 somewhere within the file.
As a result, some basic-link internal-destination does not point to the
right place even though the id has already been specified to the right
position.

Suggestions are welcome.

Thanks a lot,
wliem




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

  



--
William LiemEmail: [EMAIL PROTECTED]
Allette Systems Pty Ltd.
Level 2, 73 Union St
Pyrmont NSW 2009 Australia
Tel: +61 2 9660 8866
Fax: +61 2 9660 8869


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



Re: embedding font Bundesbahn-Pi at FOP

2007-08-14 Thread william

Thanks Adrian and everyone,

I have sent it to you for you to take a look at it (font and FO). if 
there's something that is useful for me/others to know, please do tell me.


Otherwise, does anyone has any idea where else I can look for software 
solution that might accommodate this ?


William.

Adrian Cumiskey wrote:

Hi William,

Yes I think that might be the problem, it does look like an encoding 
problem to me.  I took a quick look at the code and the 
NullPointerException you are experiencing would indicate that the 
encoding is not recognised by FOP and its failing to provide a 
CodePointMapping instance which is used internally by SingleByteFont.


If you send me the font (and fo) I will try and take a quick look at it.

Adrian.

william wrote:

Hi All,

First of all, would like to thank you all developers and commiters at 
FOP. i've been using it for awhile now.


I haven't had problem with embedding fonts before, except on this 
Bundesbahn-Pi font and another symbol/pi font. The error message is 
posted below.

I'm using fop 0.93 and I need help with embedding this font.

Is there anything to do with this?
/currently present a problem because FOP cannot correctly determine 
the encoding of these two single-byte fonts through the PFM file. FOP 
now correctly interprets the encoding value in the XML font metrics 
file, but the PFMReader application writes UnknownEncoding to the 
generated XML file


/If someone would try to work it out for me, i can send you the font 
to try out + .fo file.


This is my configuration for the font:
font metrics-url=Bundesbahn.xml kerning=yes 
embed-url=Bundesba.pfb
   font-triplet name=Bundesbahn style=normal 
weight=normal/

 /font
/
*Error message generated by FOP:*
10/08/2007 06:16:13 org.apache.fop.cli.Main startFOP
SEVERE: Exception
java.lang.NullPointerException
   at 
org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:168)
   at 
org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:115)

   at org.apache.fop.cli.Main.startFOP(Main.java:160)
   at org.apache.fop.cli.Main.main(Main.java:191)

-

java.lang.NullPointerException
   at 
org.apache.fop.fonts.SingleByteFont.hasChar(SingleByteFont.java:103)

   at org.apache.fop.fonts.LazyFont.hasChar(LazyFont.java:166)
   at org.apache.fop.fonts.Font.hasChar(Font.java:189)
   at org.apache.fop.fonts.Font.getCharWidth(Font.java:231)
   at 
org.apache.fop.layoutmgr.inline.TextLayoutManager.initialize(TextLayoutManager.java:188) 


...

Thank you,
/




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




--
William LiemEmail: [EMAIL PROTECTED]
Allette Systems Pty Ltd.
Level 2, 73 Union St
Pyrmont NSW 2009 Australia
Tel: +61 2 9660 8866
Fax: +61 2 9660 8869


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



embedding font Bundesbahn-Pi at FOP

2007-08-10 Thread william

Hi All,

First of all, would like to thank you all developers and commiters at 
FOP. i've been using it for awhile now.


I haven't had problem with embedding fonts before, except on this 
Bundesbahn-Pi font and another symbol/pi font. The error message is 
posted below.

I'm using fop 0.93 and I need help with embedding this font.

Is there anything to do with this?
/currently present a problem because FOP cannot correctly determine the 
encoding of these two single-byte fonts through the PFM file. FOP now 
correctly interprets the encoding value in the XML font metrics file, 
but the PFMReader application writes UnknownEncoding to the generated 
XML file


/If someone would try to work it out for me, i can send you the font to 
try out + .fo file.


This is my configuration for the font:
font metrics-url=Bundesbahn.xml kerning=yes 
embed-url=Bundesba.pfb
   font-triplet name=Bundesbahn style=normal 
weight=normal/

 /font
/
*Error message generated by FOP:*
10/08/2007 06:16:13 org.apache.fop.cli.Main startFOP
SEVERE: Exception
java.lang.NullPointerException
   at 
org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:168)

   at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:115)
   at org.apache.fop.cli.Main.startFOP(Main.java:160)
   at org.apache.fop.cli.Main.main(Main.java:191)

-

java.lang.NullPointerException
   at 
org.apache.fop.fonts.SingleByteFont.hasChar(SingleByteFont.java:103)

   at org.apache.fop.fonts.LazyFont.hasChar(LazyFont.java:166)
   at org.apache.fop.fonts.Font.hasChar(Font.java:189)
   at org.apache.fop.fonts.Font.getCharWidth(Font.java:231)
   at 
org.apache.fop.layoutmgr.inline.TextLayoutManager.initialize(TextLayoutManager.java:188)

...

Thank you,
/

--
WilliamEmail: [EMAIL PROTECTED]


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



Re: RE : [fop-users] [sigma] print greek sigma character on fop 0.20.5

2005-11-29 Thread William Gilbert



I would like to print a sigma character on my generated PDF

I use FOP version 0.20.5 and I can't change this version.


The Numeric Character References should work, provided the font
you're using has a glyph for the desired character... (# means that
the used font doesn't have a glyph for sigma)



Try this.

A greek character indeed has a unicode value but only the Symbol  
font has a glyph for that unicode character.  A glyph is the way a  
character is drawn on the screen or on paper.


fo:inline font-family=Symbol#x03A3;/fo:inline

Now, encoding these in your incoming XML is another trick entirely!!  
One which I have not entirely mastered but have been successful with.


--will gilbert

smime.p7s
Description: S/MIME cryptographic signature


Creating a checked box

2005-08-17 Thread William Gilbert


Long time FOP user here...  First off, Many Thanks to The FOP  
Team.  You guys have made me look like a miracle worker time and  
time again!


My question --

Am using FOP to simulate a filled out paper form as my client starts  
the long move toward a paperless system.  The form has some  
checkboxes and I would like to create the look a checked box.


I can use the ZapfDingbats font family characters #x274F; and  
#x2714; to create the box or the check-mark.  But would like to  
overstrike the various boxes with a check-mark as driven by the data  
xml.


I can live with a check-mark without the underlying box, but this  
would be really cool if I could pull the checked box off.


Really don't want to use an external graphic of a checked box.  I  
want this XSL to be as self contained as possible.




William A. Gilbert, Ph.D.
CSO  VP Bioinformatics
Informagen, Inc.
A Biotechnology Information Resource

  e-mail: [EMAIL PROTECTED]
  pager-mail: [EMAIL PROTECTED]
   Voice: 603-862-2958
iChat AV/AIM: [EMAIL PROTECTED]
 Web: http://Informagen.com
  http://NHBiotech.com




smime.p7s
Description: S/MIME cryptographic signature