https://bugs.freedesktop.org/show_bug.cgi?id=41524

Michael Pardee <bugs.freedesktop....@open-sense.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|medium                      |high
                 CC|                            |bugs.freedesktop.org@open-s
                   |                            |ense.com
           See Also|                            |https://www.libreoffice.org
                   |                            |/bugzilla/show_bug.cgi?id=4
                   |                            |6904
            Version|LibO 3.4.3 release          |LibO 3.5.1 Release

--- Comment #7 from Michael Pardee <bugs.freedesktop....@open-sense.com> 
2012-03-27 13:21:36 PDT ---
I manage about 1000 computers that this is causing problems on - the huge
number of print jobs created when a user prints multiple copies is slowing down
the printers and causing problems with print release software that lets users
confirm and pay for print jobs before they are printed.  I realize that most
home users might not notice the difference between one multi-copy job and
several individual jobs, but in larger environments it is a huge problem.

I wonder if this is the same as bug 46904 which seems to be attracting a little
more attention: 
https://www.libreoffice.org/bugzilla/show_bug.cgi?id=46904

Any advice on how to patch this or work around it without user intervention
would be greatly appreciated.  Currently it looks like the only solution is to
go back to version 3.3.4.1

I just tested this with version 3.3.4.1 and the problem does not occur. 
Testing with 3.4.0 and 3.5.1 showed the bug. The base system is Ubuntu 10.04
and the problem occurs with .debs grabbed directly from libreoffice.  

Diffing the source from 3.3.4.1 vs. 3.4.0 shows
libreoffice-3.4.0.1/vcl/unx/source/printer/cupsmgr.cxx had a few changes that
look relevant, but I'm in way over my head here:


     bool bUsePDF = false;
    cups_dest_t* pDest = ((cups_dest_t*)m_pDests);
    const char* pOpt = m_pCUPSWrapper->cupsGetOption( "printer-info",
                                                      pDest->num_options,
                                                      pDest->options );
    if( pOpt )
    {
        m_bUseIncludeFeature = true;
        bUsePDF = true;
        if( m_aGlobalDefaults.m_nPSLevel == 0 && m_aGlobalDefaults.m_nPDFDevice
== 0 )
            m_aGlobalDefaults.m_nPDFDevice = 1;
    }


...




if( rJob.m_nPDFDevice > 0 && rJob.m_nCopies > 1 )
    {
        rtl::OString aVal( rtl::OString::valueOf( sal_Int32( rJob.m_nCopies ) )
);
        rNumOptions = m_pCUPSWrapper->cupsAddOption( "copies", aVal.getStr(),
rNumOptions, (cups_option_t**)rOptions );
    }
    if( ! bBanner )
    {
        rNumOptions = m_pCUPSWrapper->cupsAddOption( "job-sheets", "none",
rNumOptions, (cups_option_t**)rOptions );
    }
}

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to