Sign In  Sign Up Live-Chat

PDF prints incorrectly

Last post 10-30-2007, 7:50 PM by forever. 33 replies.
Page 1 of 3 (34 items)   1 2 3 Next >
Sort Posts: Previous Next
  •  09-04-2007, 10:33 AM 93418

    PDF prints incorrectly

    I am using the pdf.kit.PdfViewer to print a pdf.  The pdf prints fine in Adobe Acrobat 7.0, but when you print the same pdf with pdf.kit.PdfViewer, it seems to shrink it down slightly like it is taking in to account some margins or something.  I am calling PdfViewer.PrintDocumentWithSettings since this is an unattended process.  I even tried forcing the page margins to zero on the PageSettings object that you pass to the PdfViewer.PrintDocumentWithSettings method, but that made no difference.  Let me know how I can send you the pdf that I am having the problem with.  It is critical that this pdf is rendered correctly.

    Thanks

    Paul

     
  •  09-04-2007, 3:43 PM 93473 in reply to 93418

    Re: PDF prints incorrectly

    Hi,

    Thank you for considering Aspose.

    Please attach the file to the forum post or email it to adeel.ahmad@aspose.com.

    Thanks.

     
  •  09-04-2007, 3:48 PM 93475 in reply to 93473

    Re: PDF prints incorrectly

    Attachment: Present (inaccessible)
    I've attached the pdf file.
     
  •  09-04-2007, 4:13 PM 93479 in reply to 93475

    Re: PDF prints incorrectly

    Hi,

    I have reproduced the error. I will discuss this with the devlopers and we will let you know about the solution as soon as possible.

    Thanks.

     
  •  09-05-2007, 8:53 AM 93600 in reply to 93479

    Re: PDF prints incorrectly

    Attachment: Present (inaccessible)
    I should also mention that pdf's have a couple of supported options for scaling the page to the printer's margins (printable area).  In Adobe Acrobat 7.0 you can go to document properties --> advanced tab -->>  Print Scaling (dropdown).  The two choices are 'None' and 'Default'.  I think the example that I sent you is actually set to default, but I tried it both ways with your toolkit and it didn't make difference.  If it is set to 'Default' it will scale the image to fit within the printers margins. If it is set to none, it will not scale the image.  The option that I really need to work is the 'None' option.  The pdf that I sent is an 8.5 x 11 page and needs to be rendered to the page exactly as that. If it is scaled to the printers margins (which isn't much), this throws off the whole document.  I have attached the same pdf except with the scale set to 'none'.  You will be able to notice that these will probably print slightly different from adobe.  Let me know if you need anymore info about this - Thanks
     
  •  09-06-2007, 8:40 AM 93770 in reply to 93600

    Re: PDF prints incorrectly

    Attachment: Present (inaccessible)
    Hi,

    We have fixed the align problem. The new dll is attached. We added a method PrintWithDefaultSettings() in PdfViewer . So you should change your code like this:

    PdfViewer viewer = new PdfViewer();
    viewer.OpenPdfFile("temp.pdf");
    viewer.PrintWithDefaultSettings();

    Any question is welcome.

    Georgie Yuan
    Lead Developer
    Aspose Changsha Team
    About Us
    Contact Us
     
  •  09-07-2007, 10:29 AM 93991 in reply to 93770

    Re: PDF prints incorrectly

    Thanks for the update.  I won't be back in the office until monday to try this out.  However,  I do need to specify some of the printer settings like printer name and paper source.  I do not need to specify the pagesettings though.   Could you allow for this somehow? Thanks

     
  •  09-07-2007, 12:06 PM 94002 in reply to 93991

    Re: PDF prints incorrectly

    Hi,

    You can use the PrintDocumentWithSettings function for that.

    For more information consult http://www.aspose.com/Products/Aspose.Pdf.Kit/Api/Aspose.Pdf.Kit.PdfViewer.PrintDocumentWithSettings.html

    Thanks.

     
  •  09-07-2007, 12:34 PM 94006 in reply to 94002

    Re: PDF prints incorrectly

    Now I am confused.

    You added a new method PrintWithDefaultSettings() in PdfViewer that has the new fix.  Does the method PrintDocumentWithSettings also have the new fix?

     
  •  09-07-2007, 1:08 PM 94009 in reply to 94006

    Re: PDF prints incorrectly

    Hi,

    You shouldn't have any problems with the PrintDocumentWithSettings function.

    Thanks.

     
  •  09-07-2007, 7:41 PM 94048 in reply to 94009

    Re: PDF prints incorrectly

    Hi,

    I 'll add another PrintDocumentWithSettings function with only one PrintSetting parameter to fulfil your requirement.

    Regards.

    Georgie Yuan
    Lead Developer
    Aspose Changsha Team
    About Us
    Contact Us
     
  •  09-09-2007, 3:24 AM 94082 in reply to 94048

    Re: PDF prints incorrectly

    Attachment: Present (inaccessible)

    Hi,

    We have added a PrintDocumentWithSettings(PrintSettings) function, please try the attachment.

    Regards.


    Georgie Yuan
    Lead Developer
    Aspose Changsha Team
    About Us
    Contact Us
     
  •  09-10-2007, 10:58 AM 94237 in reply to 94082

    Re: PDF prints incorrectly

    I tried the above function and get the error below.  If I call the overload that takes the PageSettings I do not get the error.

     

    System.NullReferenceException was unhandled
      Message="Object reference not set to an instance of an object."
      Source="Aspose.Pdf.Kit"
      StackTrace:
           at Aspose.Pdf.Kit.PdfFileInfo.get_NumberofPages()
           at Aspose.Pdf.Kit.PdfViewer.PrintDocumentWithSettings(PrinterSettings printerSettings)
           at AsposeTest.Program.PrintTest() in C:\Documents and Settings\deweese\My Documents\Visual Studio 2005\Projects\AsposeTest\AsposeTest\Program.cs:line 46
           at AsposeTest.Program.Main(String[] args) in C:\Documents and Settings\deweese\My Documents\Visual Studio 2005\Projects\AsposeTest\AsposeTest\Program.cs:line 16
           at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)
           at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
           at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
           at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
           at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
           at System.Threading.ThreadHelper.ThreadStart()

     
  •  09-10-2007, 10:01 PM 94325 in reply to 94237

    Re: PDF prints incorrectly

    Hi,

    Could you please provide your PDF to us. We will test it ASAP.

    Regards.

    Georgie Yuan
    Lead Developer
    Aspose Changsha Team
    About Us
    Contact Us
     
  •  09-11-2007, 8:28 AM 94413 in reply to 94325

    Re: PDF prints incorrectly

    Attachment: Present (inaccessible)
    I've attached the PDF.
     
Page 1 of 3 (34 items)   1 2 3 Next >
View as RSS news feed in XML