DWFx parsing and correct transform for visible objects
While parsing DWFx, we are using DWF toolkit example, Read2DDWFxFile.cpp , posted on this forum(using pXAMLFile->process_next_object();), and object processing by callback.
The reading and parsing object is perfect, thank you for that example.
The issue we have is that some entities, (text, dimensions, raster, for example), seem to be translated incorrectly, usually by the offset of the lower left hand corner of the current viewport.
Scale is correct for all entities.
We have poly lines that are in the correct location relative to the viewport, directly following the text with no viewport between them, and text seems to be offset with the value calculated based on page paper height (or perhaps text is OK but poly is offset in the opposite direction).
We do not see what we can use from DWF toolkit to read-calculate and correct transform per object, and it looks like a bug to us, in the conversion from XPS/XML to W2D objects where some objects are not transformed through a viewport matrix, or similar situation.
Has anyone else seen something similar and is there a solution?
Gloria