Hello,
i'm trying to combine pdf documents like in your sample CombineDocuments Variant 2.
In most cases that works great, but in some cases is does not work correctly.
I combine a textual document that i'm created wird pdfsharp & MigraDoc with some CAD (computer-aided design) drawings.
The problem i that some CAD Drawing are drawn at a wrong position. There were drawn not from (0, 0), they drawn from (-300,-300).
Were is the problem? Why some of the drawings are drawn at the wrong position?
Below the codesnippet:
Code:
PdfPage newPage = outputDocument.AddPage();
gfx = XGraphics.FromPdfPage(newPage);
gfx.DrawImage(drawingobj, new XRect(0, 0, drawingobj.PointWidth, drawingobj.PointHeight));