3
Introducing
I have a DLL in VB6 that is generating an array of javascript commands that will be executed on an Asp page to generate a PDF dynamically. So far, so good! In this PDF I need to generate a barcode, the old system made through a font that has the characters in bar code, but the PDF generator does not accept custom fonts.
Imagined solution
The pdf generator (jspdf) accepts images in Base64, so I thought of creating a routine that would generate a barcode image using the source and then encode this image in Base64 to be displayed in PDF
Progress
- I was able to create the routine to transform an image path (e.g.: image.jpg) into a Base64 string and it works correctly.
- The javascript code generator also works correctly.
Difficulties
- I can only generate an image from a pictureBox;
- Being a DLL I can’t create pictureBox
Doubts
- Is there any way to transform text using barcode source without using pictureBox?