Hi,
Had some issues with the number and null data types in Impose.
In the /FontFile in the input document the /Length1, /Length2 and
/Length3 had a reference to null or a number value. With the previous
method of podofoimpose those references got messed up in the output
document (wrong ref). The attached patch now writes the correct
references to number and null data types for the output document.
I'm not entirely sure why this happens.. I thought the
ret =new PdfObject ( *obj );
would create a copy of any PdfObject.
Best regards,
Chris
diff --git a/podofo/trunk/tools/podofoimpose/pdftranslator.cpp b/podofo/trunk/tools/podofoimpose/pdftranslator.cpp
--- a/podofo/trunk/tools/podofoimpose/pdftranslator.cpp
+++ b/podofo/trunk/tools/podofoimpose/pdftranslator.cpp
@@ -285,6 +285,15 @@
{
ret = targetDoc->GetObjects().CreateObject(obj->GetName());
}
+ else if ( obj->IsNumber() )
+ {
+ ret = targetDoc->GetObjects().CreateObject(obj->GetNumber());
+ }
+ else if ( obj->IsNull() )
+ {
+ ret = targetDoc->GetObjects().CreateObject();
+ ret->Clear();
+ }
else
{
ret = new PdfObject ( *obj );//targetDoc->GetObjects().CreateObject(*obj);
_______________________________________________
Podofo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/podofo-users