PDFsharp - moved to http://forum.pdfsharp.net/ Forum Index PDFsharp - moved to http://forum.pdfsharp.net/
Please visit the new PDFsharp forum at http://forum.pdfsharp.net/
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Printer not printing properly

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    PDFsharp - moved to http://forum.pdfsharp.net/ Forum Index -> Support - moved to http://forum.pdfsharp.net/
View previous topic :: View next topic  
Author Message
cpfisher



Joined: 28 Aug 2007
Posts: 1

PostPosted: Tue Aug 28, 2007 9:36 pm    Post subject: Printer not printing properly Reply with quote

I am using PdfSharp to take 3 documents and merge them into 2. The 3 individual documents will print fine but after the merge then they don't print. The printer waits for something but I'm not sure for what.

I've put my code below that I use to combine the files.

A few notes about the code:
1. output is a custom class that just contains some info about the output that I want.
2. htFiles is a hashtable with the PdfDocument objects in it.

When I looked at some of the information about each page I noticed that the mediabox wasn't being set. Could that be a problem?
Code:

PdfDocument pdfOutput = new PdfDocument(outputName);
                        try
                        {
                            pdfOutput.SecuritySettings.PermitFullQualityPrint = true;
                            pdfOutput.SecuritySettings.PermitModifyDocument = true;
                            pdfOutput.SecuritySettings.PermitExtractContent = true;
                            pdfOutput.SecuritySettings.PermitPrint = true;
                            foreach (OutputPage outputPage in output.Pages)
                            {
                                int intTemplateID =GetKey();
                                int intSequence = GetSequence();
                                PdfDocument thisPdf =
                                    (PdfDocument)htFiles[intTemplateID];
                                PdfPage page = thisPdf.Pages[intSequence - 1];
                                page = pdfOutput.AddPage(page);
                            }
                            //Save Pdf
                            pdfOutput.Save(finalPath + outputName);
                        }
                        catch (Exception exc)
                        {
                            //Error handling
                        }
                        finally
                        {
                            pdfOutput.Close();
                        }


If more information is needed then let me know. I'll try to give as much as possible to fix this. The other alternative is using ABCpdf and I've looked at the documentation for that...
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    PDFsharp - moved to http://forum.pdfsharp.net/ Forum Index -> Support - moved to http://forum.pdfsharp.net/ All times are GMT
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum


Powered by phpBB © phpBB Group. Hosted by phpBB.BizHat.com


Start Your Own YouTube Clone

Free Web Hosting | Free Forum Hosting | FlashWebHost.com | Image Hosting | Photo Gallery | FreeMarriage.com

Powered by PhpBBweb.com, setup your forum now!
For Support, visit Forums.BizHat.com