Commit 935003c0 authored by Albert Astals Cid's avatar Albert Astals Cid
Browse files

Set the print margin to 0 as the pdf itself already has the margins

svn path=/trunk/kdegraphics/kpdf/; revision=343811
parent d40a570e
......@@ -582,6 +582,7 @@ Part::print()
printer.setPageSelection(KPrinter::ApplicationSide);
printer.setMinMax(1, m_doc->getNumPages());
printer.setCurrentPage(m_currentPage);
printer.setMargins(0, 0, 0, 0);
if (printer.setup(widget()))
{
......@@ -711,6 +712,7 @@ void Part::printPreview()
KPrinter printer;
printer.setMinMax(1, m_doc->getNumPages());
printer.setPreviewOnly( true );
printer.setMargins(0, 0, 0, 0);
doPrint(printer);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment