Script or program to convert .lbl file to .pdf?

I would like to use a script or program to convert a .lbl file to .pdf.  (The .lbl is a label format file).
A batch converter would be best, however if that is not possible, then a script to automatically convert the .lbl file to a 4" x 4" pdf file would be good.
(Automation is key, thus avoiding the steps to open a program, opening the file, and then saving it as a pdf.)
100questionsAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Bill PrewIT / Software Engineering ConsultantCommented:
What created the LBL file?

~bp
100questionsAuthor Commented:
A labelling software program.
Bill PrewIT / Software Engineering ConsultantCommented:
Can you provide a sample LBL file also?

~bp
Active Protection takes the fight to cryptojacking

While there were several headline-grabbing ransomware attacks during in 2017, another big threat started appearing at the same time that didn’t get the same coverage – illicit cryptomining.

100questionsAuthor Commented:
No, not at this time.
Bill PrewIT / Software Engineering ConsultantCommented:
Will need to know which labelling software program, LBL is not an industry standard format, like DOC or XLS or PDF, so there isn't one format only.  We will need to know what specific program created it.

~bp
100questionsAuthor Commented:
Legitronic Labelling Software.
Bill PrewIT / Software Engineering ConsultantCommented:
Not sure I can help with this one.  I don't see any docs online about converting these files.  And I don't have the software so can't explore it's abilities.

The only thing that might work, would be to run the labeling software to print the label, but send it to a PDF driver.  But don't know if the software would allow that, or how it would render, etc.  And could be hard to automate if the labeling software doesn't support command line parms to start a print.

Sorry I can't be of more help.

~bp

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Joe Winograd, Fellow&MVEDeveloperCommented:
You didn't mention what version of the Legitronic Labeling Software you have, but here's a link to the User Manual for Version 3.4.0:
Legitronic Labeling Software - Legitronic Secure Series Labeling Software - User Manual

On page 178 you'll find Appendix C. Automated Print Control. This shows how to do what you want, as its automation method called Batch Print Control provides the ability to control printing via commands stored in a script file. If you already have a print driver installed, like Adobe PDF, then you're all set; if not, there are many excellent (free!) PDF print drivers out there, such as:
Bullzip
CutePDF Writer
doPDF

They have varying features and some folks prefer one over the other, so you may want to experiment to see which one you like the best. At one time CutePDF was my favorite, then it was doPDF, and my current choice is Bullzip. And there are many more besides those three.

Once you have a PDF print driver installed, you may use the FMT-GDIPRINTERNAME command (page 181 of the manual) to specify it as the printer for your batch run.

If that manual (which is more than 10 years old) doesn't match your version, look for the one that does. But even so, there's a good chance that they've maintained the automation interface over the years — otherwise, it would break all of the script files that their customers have built. Regards, Joe
100questionsAuthor Commented:
Thanks Joe.
I currently use a pdf print driver, a print to pdf program, however I don't see anywhere how one can specify the size of the label when printing from batch.  That's really important since it needs to be 4"x4".
Joe Winograd, Fellow&MVEDeveloperCommented:
The print driver (or even physical printer) that you use isn't what controls the size. It's the program that's doing the printing — in this case, the Legitronic Labeling Software. Look at page 33 of the manual (copied here under "Fair Use"):

label size
I haven't studied the Batch Print Control section of the manual, but I'm guessing there's a way to specify the label size, just as there is in the GUI. Regards, Joe
100questionsAuthor Commented:
Specifying the label size does not work.
I have to specify the size - manually - unfortunately using the program that creates the pdf file.
Therefore the above solution does not work.
Joe Winograd, Fellow&MVEDeveloperCommented:
My guess is that the Legitronic Labeling Software supports specifying the label size via Label Properties>Size Tab as described on page 33 of the manual (and maybe even via the Batch Print Control feature), but since I don't have the software, I can't test it. If you say it doesn't work, so be it, but I'm surprised that the manual would have such a thorough section that is completely wrong. Regards, Joe
100questionsAuthor Commented:
Thanks, however I never got this going.  Not sure, perhaps your suggestions might work for others.
Joe Winograd, Fellow&MVEDeveloperCommented:
You're welcome — and thanks to you for the update! Regards, Joe
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
VB Script

From novice to tech pro — start learning today.