[Podofo-svn] SF.net SVN: podofo:[1414] podofo/trunk/src/doc/PdfPainter.cpp
A PDF parsing, modification and creation library.
Brought to you by:
domseichter
|
From: <dom...@us...> - 2011-02-12 11:56:43
|
Revision: 1414
http://podofo.svn.sourceforge.net/podofo/?rev=1414&view=rev
Author: domseichter
Date: 2011-02-12 11:56:37 +0000 (Sat, 12 Feb 2011)
Log Message:
-----------
FIXED: Compilation
Modified Paths:
--------------
podofo/trunk/src/doc/PdfPainter.cpp
Modified: podofo/trunk/src/doc/PdfPainter.cpp
===================================================================
--- podofo/trunk/src/doc/PdfPainter.cpp 2011-02-12 11:55:40 UTC (rev 1413)
+++ podofo/trunk/src/doc/PdfPainter.cpp 2011-02-12 11:56:37 UTC (rev 1414)
@@ -1039,13 +1039,13 @@
{
// first time: create difference-encoding as reference, enter glyph
pEncoding = pDocument->GetObjects().CreateObject( "Encoding" );
-
+
code++;
-
+
PdfArray diffs;
- diffs.push_back( static_cast<long long>( code ) );
+ diffs.push_back( PdfVariant( static_cast<pdf_int64>( code ) ) );
diffs.push_back( PdfName( pszGlyphname ) );
-
+
pEncoding->GetDictionary().AddKey( "Differences", diffs );
pGlyphFontObj->GetDictionary().AddKey("Encoding", pEncoding->Reference() );
@@ -1054,10 +1054,10 @@
PdfArray & rWidthArr = pWidthObj->GetArray();
for ( unsigned int i = 0; i < rWidthArr.size(); i++ )
{
- rWidthArr[i] = static_cast<long long>( 0 );
+ rWidthArr[i] = PdfVariant( static_cast<pdf_int64>( 0 ) );
}
- rWidthArr[code] = static_cast<long long>( width );
- }
+ rWidthArr[code] = PdfVariant( static_cast<pdf_int64>( width ) );
+ }
else
{
// search glyph in existing Encoding/Difference, create if not found
@@ -1099,7 +1099,7 @@
// enter width of glyph
PdfObject* pWidthObj = pGlyphFontObj->GetIndirectKey( "Widths" );
PdfArray & rWidthArr = pWidthObj->GetArray();
- rWidthArr[code] = static_cast<long long>( width );
+ rWidthArr[code] = PdfVariant( static_cast<pdf_int64>( width ) );
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|