[Koha] Barcode height

Richard Hills - TechnologyWise richard at tw.co.nz
Mon Oct 10 09:12:02 NZDT 2011


Thanks Chris,

We ended up "solving" this issue by changing the harcoded value, for now 
it is working but it will be interesting to see how the system behaves 
after more use.


On 07/10/11 15:36, Chris Nighswonger wrote:
> On Thu, Oct 6, 2011 at 7:20 PM, Richard Hills - TechnologyWise 
> <richard at tw.co.nz <mailto:richard at tw.co.nz>> wrote:
>
>     Hi,
>
>     I am using koha to print labels with barcodes for books, however
>     am wondering if it is possible to increase the height of the
>     barcodes generated without increasing the width.
>
>     In the last version we were working with these barcodes had a
>     height of around 10mm for us, however this has now halved and
>     users are finding it difficult to get used to.
>
>
> Unfortunately the current scaling code scales ultimately based on some 
> arbitrary hard coded value. Maintaining consistency across all barcode 
> widths with the current PDF::Reuse API is a bit challenging and would 
> become more so by allowing the user to choose. For example, if one 
> chose a particular size W x H, the bar width tends to become very 
> large as the number of chars in the actual alpha-numeric barcode 
> becomes smaller because PDF::Reuse attempts to maintain W x H. The 
> current Koha code attempts to maintain a reasonable W x H for all 
> possible barcodes. And it does not do even this extremely well. Try 
> generating barcodes for '1' versus '1234567890' to see the problem.
>
> This is all from my memory as its been a while since I've had a look 
> over that code.
>
> Kind Regards,
> Chris


-- 
Richard Hills
TechnologyWise Ltd, Tauranga, NZ
richard at tw.co.nz
www.technologywise.co.nz
ph: +64 (0)7 571 1060
fax: +64 (0)7 571 1061

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.katipo.co.nz/pipermail/koha/attachments/20111010/2aded3fd/attachment.html>


More information about the Koha mailing list