Discussion:
Free 3 of 9
nels
2013-04-18 08:14:52 UTC
Permalink
This is not an Apache issue but I am just hoping that someone has some wisdom
and a minute to respond.
I have an XSL stylesheet that uses barcode Free 3 of 9 fonts and I have been
asked to increase the size of the barcode displayed. The lines are
currently:



<xsl:value-of select="./barcode_picture"/>


I have changed the size to 80 but that did nothing. Can someone perhaps give
me some advice?



-----
just starting out with FOP - don't hurt me!
--
View this message in context: http://apache-fop.1065347.n5.nabble.com/Free-3-of-9-tp38348.html
Sent from the FOP - Users mailing list archive at Nabble.com.
TvT
2013-04-18 09:08:23 UTC
Permalink
Post by nels
barcode Free 3 of 9 fonts
Hi,

are you using barcode4j?
The examples are here: http://barcode4j.sourceforge.net/examples.html

If you then open the exampe you will find:

<xsl:variable name="barcode-cfg">
<barcode>
<code128>
<human-readable>none</human-readable>
<height>8mm</height>
<quiet-zone enabled="false"/>
</code128>
</barcode>
</xsl:variable>
<xsl:copy-of select="barcode:generate($barcode-cfg,
/invoice/header/invoicenr)"/>

Depending on the type of barcode (for you code 39) you can use different
options:

http://barcode4j.sourceforge.net/2.1/barcode-xml.html

<barcode message="123456789
<http://barcode4j.sourceforge.net/2.1/barcode-xml.html#string>">
<code39 <http://barcode4j.sourceforge.net/2.1/symbol-code39.html>>
<height>15mm
<http://barcode4j.sourceforge.net/2.1/barcode-xml.html#length></height>
<module-width>0.19mm
<http://barcode4j.sourceforge.net/2.1/barcode-xml.html#length></module-width>
<wide-factor>2.5
<http://barcode4j.sourceforge.net/2.1/barcode-xml.html#number></wide-factor>
<interchar-gap-width>1mw
<http://barcode4j.sourceforge.net/2.1/barcode-xml.html#length></interchar-gap-width>
<quiet-zone enabled="true
<http://barcode4j.sourceforge.net/2.1/barcode-xml.html#boolean>">10mw
<http://barcode4j.sourceforge.net/2.1/barcode-xml.html#length></quiet-zone>
<checksum>auto
<http://barcode4j.sourceforge.net/2.1/barcode-xml.html#checksum-mode></checksum>
<human-readable>
<placement>bottom
<http://barcode4j.sourceforge.net/2.1/barcode-xml.html#human-readable-placement></placement>
<font-name>Helvetica
<http://barcode4j.sourceforge.net/2.1/barcode-xml.html#font-name></font-name>
<font-size>8pt
<http://barcode4j.sourceforge.net/2.1/barcode-xml.html#length></font-size>
<pattern>{string}
<http://barcode4j.sourceforge.net/2.1/barcode-xml.html#string></pattern>
<!-- see below <http://barcode4j.sourceforge.net/2.1/barcode-xml.html#pattern>
for details -->
<display-start-stop>false
<http://barcode4j.sourceforge.net/2.1/barcode-xml.html#boolean></display-start-stop>
<display-checksum>false
<http://barcode4j.sourceforge.net/2.1/barcode-xml.html#boolean></display-checksum>
</human-readable>
</code39 <http://barcode4j.sourceforge.net/2.1/symbol-code39.html>>
</barcode>

Regards,
ToM
nels
2013-04-18 13:13:44 UTC
Permalink
To be honest I don't know. What I attached before is the only part of the XSL
that looks barcode-related. I have inherited this code to maintain (which is
my excuse).



-----
just starting out with FOP - don't hurt me!
--
View this message in context: http://apache-fop.1065347.n5.nabble.com/Free-3-of-9-tp38348p38357.html
Sent from the FOP - Users mailing list archive at Nabble.com.
nels
2013-04-19 06:57:57 UTC
Permalink
I tried to implement this as Barcode4j but get an error about "specificity"
see image.
<Loading Image...>
I have taken the liberty of attaching the xml and xsl which are giving me
grief and if someone can help my heartfelt thanks. nc.xsl
<http://apache-fop.1065347.n5.nabble.com/file/n38369/nc.xsl> nc.xml
<http://apache-fop.1065347.n5.nabble.com/file/n38369/nc.xml>



-----
just starting out with FOP - don't hurt me!
--
View this message in context: http://apache-fop.1065347.n5.nabble.com/Free-3-of-9-tp38348p38369.html
Sent from the FOP - Users mailing list archive at Nabble.com.
ruud grosmann
2013-05-01 06:49:52 UTC
Permalink
Hi Nels,

I use the font attribute to change the font size. If the font is
already set, only font-size can be used too. The font or font-size
attributes can be used on a lot of elements. For example:

<fo:block line-height='8pt' text-align='center' font='10pt OCRB'>
<xsl:apply-templates />
</fo:block>
This changes the barcode font size without problems.

I hope this works for you too....

regards, Ruud
nels
2013-05-02 04:56:08 UTC
Permalink
Hi Ruud,

Mine was not an FOP style sheet and eventually I found this syntax
(attached) working_font-size.txt
<http://apache-fop.1065347.n5.nabble.com/file/n38482/working_font-size.txt>
worked for me.

Thanks.



-----
just starting out with FOP - don't hurt me!
--
View this message in context: http://apache-fop.1065347.n5.nabble.com/Free-3-of-9-tp38348p38482.html
Sent from the FOP - Users mailing list archive at Nabble.com.

Continue reading on narkive:
Loading...