Bugzilla – Attachment 65549 Details for
Bug 49791
PRINTING: Documents with image and text, only print the image!
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
another try at some debugging / fixing
print-fix.diff (text/plain), 2.98 KB, created by
Michael Meeks
on 2012-08-14 13:41:05 UTC
(
hide
)
Description:
another try at some debugging / fixing
Filename:
MIME Type:
Creator:
Michael Meeks
Created:
2012-08-14 13:41:05 UTC
Size:
2.98 KB
patch
obsolete
>diff --git a/vcl/generic/print/genprnpsp.cxx b/vcl/generic/print/genprnpsp.cxx >index 6525f96..30ac65d 100644 >--- a/vcl/generic/print/genprnpsp.cxx >+++ b/vcl/generic/print/genprnpsp.cxx >@@ -1032,7 +1032,12 @@ SalGraphics* PspSalPrinter::StartPage( ImplJobSetup* pJobSetup, sal_Bool ) > sal_Bool PspSalPrinter::EndPage() > { > sal_Bool bResult = m_aPrintJob.EndPage(); >+ >+ // fdo#49791 - some printers can't cope with un-closed clipping >+ m_aPrinterGfx.ResetClipRegion(); >+ fprintf (stderr, "Clear clip region\n"); > m_aPrinterGfx.Clear(); >+ > OSL_TRACE("PspSalPrinter::EndPage"); > return bResult ? sal_True : sal_False; > } >@@ -1199,6 +1204,7 @@ sal_Bool PspSalPrinter::StartJob( const rtl::OUString* i_pFileName, const rtl::O > #if defined __SUNPRO_CC > #pragma enable_warn > #endif >+ fprintf (stderr, "Create PDF Writer !\n"); > } > > pWriter->NewPage( TenMuToPt( aNewParm.maPageSize.Width() ), >diff --git a/vcl/source/gdi/oldprintadaptor.cxx b/vcl/source/gdi/oldprintadaptor.cxx >index 2a8da86..73cf7a5 100644 >--- a/vcl/source/gdi/oldprintadaptor.cxx >+++ b/vcl/source/gdi/oldprintadaptor.cxx >@@ -84,6 +84,7 @@ void OldStylePrintAdaptor::StartPage() > > void OldStylePrintAdaptor::EndPage() > { >+ fprintf (stderr, "OldStylePrintAdaptor foo\n"); > getPrinter()->SetConnectMetaFile( NULL ); > mpData->maPages.back().maPage.WindStart(); > } >diff --git a/vcl/source/gdi/pdfwriter_impl.cxx b/vcl/source/gdi/pdfwriter_impl.cxx >index ca44916..39922b1 100644 >--- a/vcl/source/gdi/pdfwriter_impl.cxx >+++ b/vcl/source/gdi/pdfwriter_impl.cxx >@@ -102,7 +102,7 @@ using ::rtl::OUStringHash; > using ::rtl::OStringBuffer; > using ::rtl::OUStringBuffer; > >-#if (OSL_DEBUG_LEVEL < 3) >+#if 0 // (OSL_DEBUG_LEVEL < 3) > #define COMPRESS_PAGES > #else > #define DEBUG_DISABLE_PDFCOMPRESSION // also do not compress streams >@@ -2500,6 +2500,10 @@ sal_Int32 PDFWriterImpl::newPage( sal_Int32 nPageWidth, sal_Int32 nPageHeight, P > aBuf.append( " w\n" ); > writeBuffer( aBuf.getStr(), aBuf.getLength() ); > >+ // fdo#49791 - some printers can't cope with un-closed clipping >+ writeBuffer( "q\n", sizeof ("q\n") - 1 ); >+ fprintf (stderr, "push: clip region !\n"); >+ > return m_nCurrentPage; > } > >@@ -2507,6 +2511,10 @@ void PDFWriterImpl::endPage() > { > if( m_aPages.begin() != m_aPages.end() ) > { >+ // fdo#49791 - some printers can't cope with un-closed clipping >+ writeBuffer( "Q\n", sizeof ("Q\n") - 1 ); >+ fprintf (stderr, "reset/pop: clip region !\n"); >+ > // close eventual MC sequence > endStructureElementMCSeq(); > >diff --git a/vcl/unx/generic/app/salinst.cxx b/vcl/unx/generic/app/salinst.cxx >index cb11406..f2106dc 100644 >--- a/vcl/unx/generic/app/salinst.cxx >+++ b/vcl/unx/generic/app/salinst.cxx >@@ -352,6 +352,7 @@ void X11SalInstance::PostPrintersChanged() > > GenPspGraphics *X11SalInstance::CreatePrintGraphics() > { >+ fprintf (stderr, "create GenPspGraphics\n"); > return new GenPspGraphics(); > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 49791
:
65499
| 65549