PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Tue Jul 02, 2024 3:14 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
PostPosted: Mon Feb 28, 2011 12:18 am 
Offline

Joined: Sat Feb 05, 2011 7:30 pm
Posts: 15
I am looping an array list adding each 1 page pdf file to the first pdf file and it works fine. After I run the following code I get an expected output of:

Added C:\My Stuff\File 2.pdf to C:\My Stuff\File 1.pdf
Added C:\My Stuff\File 3.pdf to C:\My Stuff\File 1.pdf

However what is odd is that when I open File1.pdf, it is 4 pages not 3 and in a wierd order.
Page1 is File1 and has a footer of C:\My Stuff\File 1.pdf • 1
Page2 is File3 and has a footer of C:\My Stuff\File 3.pdf • 1
Page3 is File2 and has a footer of C:\My Stuff\File 2.pdf • 2
Page4 is blank and has a footer of C:\My Stuff\File 3.pdf • 2

I was able to reproduce the issue using only the Combine PDF files sample code (Variant1) with no customizing so this might be a bug. Can anyone confirm for me?

For Example:
Take 3 one page simple PDFfiles (File1.pdf, File2.pdf, File3.pdf). Combine File1.pdf and File2.pdf into a new file named Combined.pdf. Open it and see that it is only 2 pages, just as we expected.

No take Combined.pdf and File3.pdf and combine them into a new file named Final.pdf. Open Final.pdf to see that it is 4 pages, not 3 as expected and the pages are out of order.


Top
 Profile  
 
PostPosted: Mon Feb 28, 2011 8:13 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3101
Location: Cologne, Germany
Already discussed here:
viewtopic.php?p=4340#p4340

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 30 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