glabels-qt
glabels-qt copied to clipboard
How to add .csv File to input in glabels-batch-qt Command?
Hi, It's the first time that I'm working with glabels. I have a question and I don't know if it's an issue or not. In older glabels version there was a way to add the CSV-File as an Input to the glabels-3-batch command. How is this done with the new glabels-batch-qt ? I need a really simple solution to call this CSV-File on my Ubuntu Server.
I can add the csv merge manually in the glabels application. How can I provide this to be automated?
Thank you for your help.
I asked a similar question #92
The way I did this was to:
-
gunzip
the project file if it is gzipped so it is just raw XML -
Option 1: Search for the
<Merge src="/path/to/csv/file/here.csv"
attribute in the glabels-qt project file and replace it with the path to the CSV the continue as normal.-
glabels-batch-qt -o test.pdf yourmodifiedprojectfile.glabels
-
-
Option 2: Another option I tried was to modify the project file to take input from STDIN thusly:
<Merge src="/dev/stdin"
which might have worked too.-
cat PrintTempFile.csv | LD_LIBRARY_PATH=/usr/local/glabel-qt-moved/usr/lib /usr/bin/xvfb-run \ -- /usr/local/glabels-qt-moved/usr/bin/glabels-batch-qt -o test.pdf 100x50sample-1.glabels
-
Having said all the above I found that glabels-qt wasn't quite ready for the prime time in the 3.99 versions due to some formatting niggles and I went back to using glabels-3-batch