You are not logged in.
Pages: 1
See http://synopse.info/forum/viewtopic.php?pid=684#p684
Some hints how to insert an image to the pdf content.
Offline
use TPSysTools to generate a barcode + export it to bitmap/WMF + draw it onto PDFCanvas.
but I had best results by generating a 1:1 barcode with TPSysTools onto a bitmap - then you have to scan the image for each pixel and generate a rectangle over each "black area". this is needed because TPSysTools generate one rectangle per barcode pixel which can end up in non consistent "black areas" on the print because the rectangles are scaled and so rounding errors can occure. I know it is not the most efficient method, but quick-and-dirty is sometimes good enough
Last edited by reddwarf (2011-03-22 23:53:50)
Offline
TPSysTools is great, and open source software.
If you have an WMF, you can draw it on the PDFCanvas.
It will be vectorial, so I guess it could work perfectly with PDF and create smaller files.
I think there is perhaps some problems with WMF, since EMF is the native format of our canvas.
Offline
eraldo: i don't think so - just follow my/arnauld's instructions and you will be able to generate a pdf barcode with very little effort. look at the examples in TPSysTools and do what you want. there are so many different barcode types, for example. the demos are very straightforward.
to arnauld: the problem with wmf/emf originally generated with TPSysTools is that when they are scaled, "new white lines" can occur in the barcode because of rounding errors when scaling. this is because a bar with the width of 2px is generated with 2 bars with the width of 1px. that's the problem. but maybe someone changed it since i had the problem
Offline
Pages: 1