Add ProgressFun
This commit is contained in:
parent
b93568ad18
commit
0ab3d5486d
2 changed files with 7 additions and 2 deletions
2
ppm2pwg
2
ppm2pwg
|
@ -1 +1 @@
|
|||
Subproject commit 6a93de071f3d2814260da5fe2ea14352483ea0a0
|
||||
Subproject commit c5d67c2188cbb5cd7714ba3342b5b5507269b4a0
|
|
@ -155,6 +155,11 @@ try {
|
|||
return true;
|
||||
});
|
||||
|
||||
progress_fun ProgressFun([this](size_t page, size_t total) -> void
|
||||
{
|
||||
emit progress(page, total);
|
||||
});
|
||||
|
||||
if(!PaperSizes.contains(PaperSize))
|
||||
{
|
||||
qDebug() << "Unsupported paper size" << PaperSize;
|
||||
|
@ -165,7 +170,7 @@ try {
|
|||
float Height = size.height();
|
||||
|
||||
int res = pdf_to_printable(filename.toStdString(), WriteFun, Colors, Quality, PaperSize.toStdString(), Width, Height, HwResX, HwResY,
|
||||
format, TwoSided, Tumble, BackHFlip, BackVFlip, PageRangeLow, PageRangeHigh);
|
||||
format, TwoSided, Tumble, BackHFlip, BackVFlip, PageRangeLow, PageRangeHigh, ProgressFun);
|
||||
|
||||
if(res != 0)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue