PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Thu Mar 28, 2024 6:31 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Combine PDF Documents
PostPosted: Thu Dec 06, 2012 2:49 pm 
Offline

Joined: Wed Dec 01, 2010 1:51 pm
Posts: 1
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));



Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 136 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group