Page 1 of 1
Print a page and the size in the preview is to small (tump nail)
Posted: Thu Jun 10, 2021 12:03 pm
by rlcgm
Hello,
I have a little problem and I need support:
I want to print a pdf document and the size of the page is A4. The print-out of the page is like a thump nail. But that is wrong. The MFC demo app has the same problem and the preview and the print-out have the same wrong size.
Re: Print a page and the size in the preview is to small (tump nail)
Posted: Thu Jun 10, 2021 12:37 pm
by Sasha - PDF-XChange
Hello rlcgm,
Please show a piece of code that you are using for this.
Cheers,
Alex
Re: Print a page and the size in the preview is to small (tump nail)
Posted: Thu Jun 10, 2021 1:31 pm
by rlcgm
Hello Alex,
in the MFC c++ demo, the same problem is included. Use the print demo in the MFC App and open a pdf file and print is out or look at the preview. The original PDF File is in A4 the print out is much smaller.
Cheers
Re: Print a page and the size in the preview is to small (tump nail)
Posted: Fri Jun 11, 2021 7:01 pm
by Sasha - PDF-XChange
Hello rlcgm,
We've found a solution to your problem.
The thing is that the dm matrix in this call is not needed:
Code: Select all
pPage->DrawToDevice((PXC::HANDLE_T)pdlg.hDC, DrawRect, &dm, PXC::DDF_AsVector, nullptr, pROpt, nullptr);
Pass nullptr instead and it will work for you.
Cheers,
Alex
Re: Print a page and the size in the preview is to small (tump nail)
Posted: Mon Jun 14, 2021 5:51 am
by rlcgm
Hallo Alex,
this is line from the MFC sample and is not works. Sorry.
Cheers
Re: Print a page and the size in the preview is to small (tump nail)
Posted: Mon Jun 14, 2021 5:54 am
by rlcgm
Hallo Alex,
sorry, i replace the dm with nullptr and then it works. Many thanks.
Cheers
Print a page and the size in the preview is to small (tump nail)
Posted: Mon Jun 14, 2021 8:54 am
by Sasha - PDF-XChange