LibreOffice Module vcl (master)  1
Classes | Namespaces | Macros | Typedefs | Functions | Variables
pdfwriter_impl.cxx File Reference
#include <config_features.h>
#include <sal/types.h>
#include <math.h>
#include <algorithm>
#include <lcms2.h>
#include <basegfx/matrix/b2dhommatrix.hxx>
#include <basegfx/polygon/b2dpolygon.hxx>
#include <basegfx/polygon/b2dpolygontools.hxx>
#include <basegfx/polygon/b2dpolypolygon.hxx>
#include <basegfx/polygon/b2dpolypolygoncutter.hxx>
#include <basegfx/polygon/b2dpolypolygontools.hxx>
#include <memory>
#include <com/sun/star/io/XOutputStream.hpp>
#include <com/sun/star/util/URL.hpp>
#include <com/sun/star/util/URLTransformer.hpp>
#include <comphelper/processfactory.hxx>
#include <comphelper/string.hxx>
#include <cppuhelper/implbase.hxx>
#include <i18nlangtag/languagetag.hxx>
#include <o3tl/numeric.hxx>
#include <osl/file.hxx>
#include <osl/thread.h>
#include <rtl/digest.h>
#include <rtl/ustrbuf.hxx>
#include <sal/log.hxx>
#include <svl/urihelper.hxx>
#include <tools/fract.hxx>
#include <tools/helpers.hxx>
#include <tools/stream.hxx>
#include <tools/urlobj.hxx>
#include <tools/zcodec.hxx>
#include <svl/cryptosign.hxx>
#include <vcl/bitmapex.hxx>
#include <vcl/bitmapaccess.hxx>
#include <vcl/canvastools.hxx>
#include <vcl/cvtgrf.hxx>
#include <vcl/fontcharmap.hxx>
#include <vcl/lineinfo.hxx>
#include <vcl/metric.hxx>
#include <vcl/settings.hxx>
#include <vcl/strhelper.hxx>
#include <vcl/svapp.hxx>
#include <vcl/virdev.hxx>
#include <vcl/filter/pdfdocument.hxx>
#include <comphelper/hash.hxx>
#include <fontsubset.hxx>
#include <PhysicalFontFace.hxx>
#include <salgdi.hxx>
#include <textlayout.hxx>
#include <textlineinfo.hxx>
#include <bitmapwriteaccess.hxx>
#include <impglyphitem.hxx>
#include "pdfwriter_impl.hxx"
#include <config_eot.h>
Include dependency graph for pdfwriter_impl.cxx:

Go to the source code of this file.

Classes

class  vcl::Matrix3
 
struct  AnnotationSortEntry
 
struct  AnnotSortContainer
 
struct  AnnotSorterLess
 
class  vcl::PDFStreamIf
 

Namespaces

 vcl
 

Macros

#define CHECK_RETURN(x)   if( !(x) ) return 0
 
#define CHECK_RETURN2(x)   if( !(x) ) return
 
#define CHECK_RETURN(x)   if( !x ) return false
 
#define CHECK_RETURN(x)   if( !x ) return false
 
#define HCONV(x)   ImplDevicePixelToLogicHeight( x )
 

Typedefs

typedef int ThreeInts[3]
 

Functions

static double pixelToPoint (double px)
 
static sal_Int32 pointToPixel (double pt)
 
static void appendHex (sal_Int8 nInt, OStringBuffer &rBuffer)
 
static void appendName (const OUString &rStr, OStringBuffer &rBuffer)
 
static void appendName (const sal_Char *pStr, OStringBuffer &rBuffer)
 
static void appendLiteralString (const sal_Char *pStr, sal_Int32 nLength, OStringBuffer &rBuffer)
 
static void appendDestinationName (const OUString &rString, OStringBuffer &rBuffer)
 
static void appendFixedInt (sal_Int32 nValue, OStringBuffer &rBuffer)
 
static void appendDouble (double fValue, OStringBuffer &rBuffer, sal_Int32 nPrecision=5)
 
static void appendColor (const Color &rColor, OStringBuffer &rBuffer, bool bConvertToGrey)
 
static void appendResourceMap (OStringBuffer &rBuf, const char *pPrefix, const PDFWriterImpl::ResourceMap &rList)
 
template<class GEOMETRY >
static GEOMETRY vcl::lcl_convert (const MapMode &_rSource, const MapMode &_rDest, OutputDevice *_pPixelConversion, const GEOMETRY &_rObject)
 
static void appendStructureAttributeLine (PDFWriter::StructAttribute i_eAttr, const PDFWriterImpl::PDFStructureAttribute &i_rVal, OStringBuffer &o_rLine, bool i_bIsFixedInt)
 
static bool getPfbSegmentLengths (const unsigned char *pFontBytes, int nByteLen, ThreeInts &rSegmentLengths)
 
static void appendSubsetName (int nSubsetID, const OUString &rPSName, OStringBuffer &rBuffer)
 
static const ColorreplaceColor (const Color &rCol1, const Color &rCol2)
 
static void escapeStringXML (const OUString &rStr, OUString &rValue)
 
static double calcAngle (const tools::Rectangle &rRect, const Point &rPoint)
 

Variables

static bool g_bDebugDisableCompression = getenv("VCL_DEBUG_DISABLE_PDFCOMPRESSION")
 
static const sal_Int32 nLog10Divisor = 3
 
static const double fDivisor = 1000.0
 

Macro Definition Documentation

#define CHECK_RETURN (   x)    if( !(x) ) return 0
#define CHECK_RETURN (   x)    if( !x ) return false

Definition at line 4514 of file pdfwriter_impl.cxx.

#define CHECK_RETURN (   x)    if( !x ) return false

Definition at line 4514 of file pdfwriter_impl.cxx.

#define CHECK_RETURN2 (   x)    if( !(x) ) return
#define HCONV (   x)    ImplDevicePixelToLogicHeight( x )

Typedef Documentation

typedef int ThreeInts[3]

Definition at line 2494 of file pdfwriter_impl.cxx.

Function Documentation

static void appendColor ( const Color rColor,
OStringBuffer &  rBuffer,
bool  bConvertToGrey 
)
static
static void appendDestinationName ( const OUString &  rString,
OStringBuffer &  rBuffer 
)
static
static void appendDouble ( double  fValue,
OStringBuffer &  rBuffer,
sal_Int32  nPrecision = 5 
)
static
static void appendFixedInt ( sal_Int32  nValue,
OStringBuffer &  rBuffer 
)
static
static void appendHex ( sal_Int8  nInt,
OStringBuffer &  rBuffer 
)
static
static void appendLiteralString ( const sal_Char pStr,
sal_Int32  nLength,
OStringBuffer &  rBuffer 
)
static
static void appendName ( const OUString &  rStr,
OStringBuffer &  rBuffer 
)
static
static void appendName ( const sal_Char pStr,
OStringBuffer &  rBuffer 
)
static

Definition at line 166 of file pdfwriter_impl.cxx.

References appendHex().

static void appendResourceMap ( OStringBuffer &  rBuf,
const char *  pPrefix,
const PDFWriterImpl::ResourceMap rList 
)
static

Definition at line 685 of file pdfwriter_impl.cxx.

Referenced by vcl::PDFWriterImpl::ResourceDict::append().

static void appendStructureAttributeLine ( PDFWriter::StructAttribute  i_eAttr,
const PDFWriterImpl::PDFStructureAttribute i_rVal,
OStringBuffer &  o_rLine,
bool  i_bIsFixedInt 
)
static
static void appendSubsetName ( int  nSubsetID,
const OUString &  rPSName,
OStringBuffer &  rBuffer 
)
static

Definition at line 2525 of file pdfwriter_impl.cxx.

References appendName(), and i.

Referenced by vcl::PDFWriterImpl::emitFontDescriptor(), and vcl::PDFWriterImpl::emitFonts().

static double calcAngle ( const tools::Rectangle rRect,
const Point rPoint 
)
static
static void escapeStringXML ( const OUString &  rStr,
OUString &  rValue 
)
static

Definition at line 5197 of file pdfwriter_impl.cxx.

References u.

Referenced by vcl::PDFWriterImpl::emitDocumentMetadata().

static bool getPfbSegmentLengths ( const unsigned char *  pFontBytes,
int  nByteLen,
ThreeInts rSegmentLengths 
)
static

Definition at line 2495 of file pdfwriter_impl.cxx.

Referenced by vcl::PDFWriterImpl::emitFonts().

static double pixelToPoint ( double  px)
static
static sal_Int32 pointToPixel ( double  pt)
static
static const Color& replaceColor ( const Color rCol1,
const Color rCol2 
)
static

Variable Documentation

const double fDivisor = 1000.0
static
bool g_bDebugDisableCompression = getenv("VCL_DEBUG_DISABLE_PDFCOMPRESSION")
static
const sal_Int32 nLog10Divisor = 3
static