PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Thu Mar 28, 2024 1:36 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
PostPosted: Sun Sep 15, 2013 2:48 am 
Offline

Joined: Sun Sep 15, 2013 1:47 am
Posts: 1
So I have this project I'm working on in C# that uses pdfsharp. Unfortunately I am having problems debugging it. The project creates information that is sent to a library that uses pdfsharp to create a pdf. Visual Studio compiles the solution without errors, but it doesn't work in the parent application.

It seems to have trouble drawing images. I keep getting a "system cannot find file specified error". I'm using the GDI version of PDFSharp

I think I've initilized the variables correctly.

PdfDocument document;
PdfPage page;
XGraphics gfx;
XImage rerun; //test image

Because I can draw an image.
gfx.DrawImage(rerun, border, 10);
gfx.DrawImage(rerun, page.Width - rerun.Width, 10);

That code works. But it stops on this line and I get "system cannot find file specified error".
gfx.DrawImage(rerun, border, 184);

Are there any suggestions?
Thanks,
Chris

Edit: I think I found the problem.
I had tried to save the document in multiple locations, and at different times. And I also had saved the document just before gfx.DrawImage(rerun, border, 184);. So I think the program had exited from that code when I tried to edit the saved document by drawing an image.


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: No registered users and 143 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:  
cron
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group