Boomaga / boomaga

Boomaga provides a virtual printer for CUPS. This can be used for print preview or for print booklets.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

how to use command line to convert .cboo file to pdf?

creatxrgithub opened this issue · comments

i find there is a file larger than 4gb in the .cache folder.

that 's which one incomplete last time.

how to use command line to convert .cboo file to pdf? thanks.

boomaga-6f8bbe28-55bf-4c0f-bd3c-a65381fada55_001.cboo

The .cboo is a PDF or Postscript file with several lines attached to the front. So you just need to delete these lines. For example:

�CUPS_BOOMAGA
JOB=111
USER=sokoloff
TITLE=%D0%97%D0%B0%D0%B3%D0%BE%D0%BB%D0%BE%D0%B2%D0%BE%D0%BA
COUNT=1
OPTIONS=
CUPS_BOOMAGA_DATA
%PDF-1.3
%cupsRotation: 0
3 0 obj
<</Length 4 0 R
>>

Lines by CUPS_BOOMAGA_DATA (inclusive) these are the program settings and you need to delete them.
As a result, you will get a valid PDF or PS file. PS can be converted to PDF using ghostscript.

gs -dNOPAUSE -dBATCH -dSAFER -sDEVICE=pdfwrite -sOutputFile=your_pdf_file.pdf -q  -f your_ps_file.ps