PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Sat Apr 27, 2024 6:20 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: Tue Jun 15, 2010 2:46 pm 
Offline

Joined: Tue Jun 15, 2010 2:18 pm
Posts: 1
Hello, I'm trying to concatenate some PDFs generated by SQL Server Reporting Service, but inthe output file the pages are added empty, I've added some other PDFs to the end of the concatenated file just for test pourposes, and these PDF's are added well.

The only diference between these PDF Files are the Fonts, Can you help me with this?

In the PDF generated by Reporting Services, the fonts doesn't seem to be inscrusted.

Thank you in advance

My Code is:

outputFile = v10Functions.MakeUniqueFile(v10DataMod.DataDict.Startup.TempDir, "", "PDF").ToUpper();
PdfDocument document = new PdfDocument();


List<string> fileNames = new List<string>();
fileNames.Add(coverOutputFile);
fileNames.Add(mainOutputFile);
fileNames.Add(remitOutputFile);
fileNames.Add(envelopeOutputFile);
fileNames.Add(@"D:\Mis Documentos\Downloads\PDFSharp-MigraDocFoundation-1_31\PDFsharp\samples\PDFs\fw4.pdf");
fileNames.Add(@"D:\Mis Documentos\Downloads\PDFSharp-MigraDocFoundation-1_31\PDFsharp\samples\PDFs\HelloWorld.pdf");
fileNames.Add(@"D:\Mis Documentos\Downloads\PDFSharp-MigraDocFoundation-1_31\PDFsharp\samples\PDFs\Portable Document Format.pdf");
fileNames.Add(@"D:\Mis Documentos\Downloads\PDFSharp-MigraDocFoundation-1_31\PDFsharp\samples\PDFs\SomeLayout.pdf");
foreach (string file in fileNames)
{
if (file != string.Empty)
{
PdfDocument inputDocument = PdfReader.Open(file, PdfDocumentOpenMode.Import);
int count = inputDocument.PageCount;
for (int idx = 0; idx < count; idx++)
{
PdfPage page = inputDocument.Pages[idx];
document.AddPage(page);
}

}
}
document.Save(outputFile);


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 388 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