PDFsharp & MigraDoc Foundation
https://forum.pdfsharp.net/

Many Limitations with PDFSharp / MigraDoc
https://forum.pdfsharp.net/viewtopic.php?f=2&t=500
Page 1 of 1

Author:  roryok [ Tue Oct 14, 2008 12:01 pm ]
Post subject:  Many Limitations with PDFSharp / MigraDoc

I really wanted to use PDFSharp / Migradoc for a project I'm working on, but I've had to abandon it because it is just too limited.

I'll explain my situation. I want to create a PDF file which contains text, charts and tables which can vary in size.

unfortunately, PDFSharp
- does not allow tables
- requires me to draw a rectangle first before putting text in, meaning I have to know the size of the text on the page before I add it.

while migraDoc
- does not support PDFSharp's charting component.
- cannot modify PDF files
- cannot use a linked image.

So using PDF sharp I can add images, but adding text is too awkward and I can't add tables at all. I can add tables in migradoc, but this means I have to create the PDF in migradoc, leaving space for PDFSharp to add the charts. But this doesn't work as the charts can vary in size so I don't know how much space to leave.

I tried doing it entirely in MigraDoc, but I can't get PDFSharp to export images. Also, migradoc won't support an image generated by an ASP charting component unless its saved to disk.

Maybe I'm just a frustrated, incompetent programmer, but I just can't really see how migradoc and PDFSharp are useful without having greater compatibility, or without supporting the above features.

Author:  Thomas Hoevel [ Tue Oct 14, 2008 2:14 pm ]
Post subject: 

MigraDoc creates PDF, RTF, and HTML. MigraDoc documents can persist in text files. This all works only if "linked images" are available as files.

You can e. g. use Excel to create charts (PDF) and include them in MigraDoc documents. That's what we are doing.
We use title pages and stationary from PDF files, too.
MigraDoc cannot modify PDF files, but it can use them to create new PDF files.

Author:  roryok [ Tue Oct 14, 2008 2:30 pm ]
Post subject: 

but it doesn't work if those linked images are on another server

I can't get MigraDoc to accept either an image stream generated via ASP or a gif saved to the disk on another server.

MigraDoc will only accept local images it seems.

Likewise, PDFSharp gives me an error about illegal characters in the path if I try to add an image remotely or via a stream.

Author:  Thomas Hoevel [ Tue Oct 14, 2008 2:53 pm ]
Post subject: 

Yep - pictures stored on another server will have to be downloaded before they can be embedded in a PDF file.
MigraDoc doesn't download them automatically - it's not designed for this; and I think it's good as it is.

The programmer is responsible for downloading these files - and so s/he has the chance to implement some caching to prevent multiple downloads of the same file.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/