PDFsharp & MigraDoc Foundation

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

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Wed Oct 19, 2016 7:41 pm 
Offline

Joined: Wed Oct 19, 2016 7:31 pm
Posts: 2
Hi

I need to create 800+ pdf documents from a c# winforms app. Each document will have 3 parts:- a letter containing text and some data, a simple table with 2 columns and a few rows of data and text, then a table with a variable number of rows and columns. Ideally this 3rd page would be landscape orientation.

I am experienced in C# but not really in pdf generation.

Just a few questions

1) Is Migradoc a good solution for me?. It seems to be more geared towards tables than PDFSharp and seems straightforward.
2) Can I have two pages in a document in portrait then a 3rd in landscape?
3) Will it be reasonably quick? Like 15 minutes to generate 800 3 page docs is OK. This is a once per quarter report.

Thanks
Jonathan


Top
 Profile  
Reply with quote  
PostPosted: Thu Oct 20, 2016 11:31 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3095
Location: Cologne, Germany
Hi!

Re 1: MigraDoc is more suitable than PDFsharp as you can easily create tables and such.
Re 2: Yes. Start a new section in the MigraDoc document and set page orientation to Landscape.
Re 3: Depends on the documents and on the type of computer. If you have a Core I7 with SSDs, then maybe split the task and have 4 or 8 processes that create 200 or 100 documents respectively each.

Make sure you use the latest beta version (1.50 beta 3b) when performing any speed tests - it is much faster than version 1.32.

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
PostPosted: Thu Oct 20, 2016 7:12 pm 
Offline

Joined: Wed Oct 19, 2016 7:31 pm
Posts: 2
Thanks. It sounds a good solution. I notice nuGet only has 1.32 but I guess I can download the dll for 1.50, add a reference and use it that way.


Top
 Profile  
Reply with quote  
PostPosted: Fri Oct 21, 2016 12:51 pm 
Offline
PDFsharp Expert
User avatar

Joined: Sat Mar 14, 2015 10:15 am
Posts: 909
Location: CCAA
NuGet has version 1.50, but you have to include "prerelease" in the search criteria.

_________________
Best regards
Thomas
(Freelance Software Developer with several years of MigraDoc/PDFsharp experience)


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 148 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