Hi,
I am currently evaluating the Aspose.Pdf.Kit for .NET and I am having problems with the copies when trying to print programmatically using the PrinterSettings.
The problem is that, when I try to set the Copies property to a number greater than 1, the actual printed copies are multiplied by the number I provided. Like when I set the copies to 2, the actual copies printed is 4. When I set it to 3, the copies printed is 9.
Am I missing something in the settings or this is a bug?
Here’s the code:
viewer.OpenPdfFile(_pdfFilePath)
'set attributes for printing
viewer.AutoResize = True 'print the file with adjusted size
viewer.AutoRotate = True 'print the file with adjusted rotation
viewer.PrintPageDialog = False 'do not produce the page number dialog when printing
'create objects for printer and page settings and PrintDocument
Dim ps As New PrinterSettings()
Dim pgs As New System.Drawing.Printing.PageSettings()
'set printer name
ps.PrinterName = “Some printer name”
'set the color
ps.Copies = 2
ps.Collate = PrintArgs.PrintCollate
ps.PrintRange = PrintRange.AllPages
'Set Page Size
For i As Integer = 0 To ps.PaperSizes.Count - 1
If ps.PaperSizes(i).RawKind = PrintArgs.PrintPageSize Then
pgs.PaperSize = ps.PaperSizes(i)
Exit For
End If
Next
'Set Paper Tray
For i As Integer = 0 To ps.PaperSources.Count - 1
If ps.PaperSources(i).RawKind = PrintArgs.PrintPaperTray Then
pgs.PaperSource = ps.PaperSources(i)
Exit For
End If
Next
'set PageMargins (if required)
pgs.Margins = New System.Drawing.Printing.Margins(0, 0, 0, 0)
'print document using printer and page settings
viewer.PrintDocumentWithSettings(pgs, ps)
'close the PDF file after priting
viewer.ClosePdfFile()
Thanks.
Hi June,
Thank you very much for considering Aspose.
Please share the input PDF file with us, so we could investigate the issue at our end. Moreover, we have introduced merged Aspose.Pdf for .NET. This version contains both Aspose.Pdf and Aspose.Pdf.Kit. I would recommend you to try [merged Aspose.Pdf for .NET](https://blog.aspose.com/2011/07/01/first-version-of-merged-aspose.pdf-for-.net-is-now-available-for-download)
.
We’re looking forward to help you out.
Regards,
Hi Shahzad,
Attached is the input PDF file. The file is generated by the SQL Reporting Services and is being sent programmatically to the printer using the code I provided.
I will also try the merged Aspose PDF for .NET. Question, will my existing code work for the merged Aspose.PDF for .NET or does it have a different set of APIs?
Thanks.
Hi June,
Thank you very much for sharing the file with us. We’ll investigate the issue in detail at our end update you with the results the earliest possible.
We’re sorry for the inconvenience.
Regards,
Hi June,
I have tested this issue at my end using the latest version, but couldn’t reproduce this problem at my end. Could you please try to use the latest version at your end as well? If you still find any issue then please do let us know.
We’re sorry for the inconvenience.
Regards,
Hi Shahzad,
I tried the latest version but still having the same issue. I also tried the new merged component but this time, nothing is printed on the printer (no error or anything). I used the same code but used a different namespace - Aspose.Pdf.Facades.
Thanks,
June
<w:LatentStyles DefLockedState=“false” DefUnhideWhenUsed=“true”
DefSemiHidden=“true” DefQFormat=“false” DefPriority=“99”
LatentStyleCount=“267”>
<w:LsdException Locked=“false” Priority=“0” SemiHidden=“false”
UnhideWhenUsed=“false” QFormat=“true” Name=“Normal”/>
<w:LsdException Locked=“false” Priority=“9” SemiHidden=“false”
UnhideWhenUsed=“false” QFormat=“true” Name=“heading 1”/>
<w:LsdException Locked=“false” Priority=“9” QFormat=“true” Name=“heading 2”/>
<w:LsdException Locked=“false” Priority=“9” QFormat=“true” Name=“heading 3”/>
<w:LsdException Locked=“false” Priority=“9” QFormat=“true” Name=“heading 4”/>
<w:LsdException Locked=“false” Priority=“9” QFormat=“true” Name=“heading 5”/>
<w:LsdException Locked=“false” Priority=“9” QFormat=“true” Name=“heading 6”/>
<w:LsdException Locked=“false” Priority=“9” QFormat=“true” Name=“heading 7”/>
<w:LsdException Locked=“false” Priority=“9” QFormat=“true” Name=“heading 8”/>
<w:LsdException Locked=“false” Priority=“9” QFormat=“true” Name=“heading 9”/>
<w:LsdException Locked=“false” Priority=“39” Name=“toc 1”/>
<w:LsdException Locked=“false” Priority=“39” Name=“toc 2”/>
<w:LsdException Locked=“false” Priority=“39” Name=“toc 3”/>
<w:LsdException Locked=“false” Priority=“39” Name=“toc 4”/>
<w:LsdException Locked=“false” Priority=“39” Name=“toc 5”/>
<w:LsdException Locked=“false” Priority=“39” Name=“toc 6”/>
<w:LsdException Locked=“false” Priority=“39” Name=“toc 7”/>
<w:LsdException Locked=“false” Priority=“39” Name=“toc 8”/>
<w:LsdException Locked=“false” Priority=“39” Name=“toc 9”/>
<w:LsdException Locked=“false” Priority=“35” QFormat=“true” Name=“caption”/>
<w:LsdException Locked=“false” Priority=“10” SemiHidden=“false”
UnhideWhenUsed=“false” QFormat=“true” Name=“Title”/>
<w:LsdException Locked=“false” Priority=“1” Name=“Default Paragraph Font”/>
<w:LsdException Locked=“false” Priority=“11” SemiHidden=“false”
UnhideWhenUsed=“false” QFormat=“true” Name=“Subtitle”/>
<w:LsdException Locked=“false” Priority=“22” SemiHidden=“false”
UnhideWhenUsed=“false” QFormat=“true” Name=“Strong”/>
<w:LsdException Locked=“false” Priority=“20” SemiHidden=“false”
UnhideWhenUsed=“false” QFormat=“true” Name=“Emphasis”/>
<w:LsdException Locked=“false” Priority=“59” SemiHidden=“false”
UnhideWhenUsed=“false” Name=“Table Grid”/>
<w:LsdException Locked=“false” UnhideWhenUsed=“false” Name=“Placeholder Text”/>
<w:LsdException Locked=“false” Priority=“1” SemiHidden=“false”
UnhideWhenUsed=“false” QFormat=“true” Name=“No Spacing”/>
<w:LsdException Locked=“false” Priority=“60” SemiHidden=“false”
UnhideWhenUsed=“false” Name=“Light Shading”/>
<w:LsdException Locked=“false” Priority=“61” SemiHidden=“false”
UnhideWhenUsed=“false” Name=“Light List”/>
<w:LsdException Locked=“false” Priority=“62” SemiHidden=“false”
UnhideWhenUsed=“false” Name=“Light Grid”/>
<w:LsdException Locked=“false” Priority=“63” SemiHidden=“false”
UnhideWhenUsed=“false” Name=“Medium Shading 1”/>
<w:LsdException Locked=“false” Priority=“64” SemiHidden=“false”
UnhideWhenUsed=“false” Name=“Medium Shading 2”/>
<w:LsdException Locked=“false” Priority=“65” SemiHidden=“false”
UnhideWhenUsed=“false” Name=“Medium List 1”/>
<w:LsdException Locked=“false” Priority=“66” SemiHidden=“false”
UnhideWhenUsed=“false” Name=“Medium List 2”/>
<w:LsdException Locked=“false” Priority=“67” SemiHidden=“false”
UnhideWhenUsed=“false” Name=“Medium Grid 1”/>
<w:LsdException Locked=“false” Priority=“68” SemiHidden=“false”
UnhideWhenUsed=“false” Name=“Medium Grid 2”/>
<w:LsdException Locked=“false” Priority=“69” SemiHidden=“false”
UnhideWhenUsed=“false” Name=“Medium Grid 3”/>
<w:LsdException Locked=“false” Priority=“70” SemiHidden=“false”
UnhideWhenUsed=“false” Name=“Dark List”/>
<w:LsdException Locked=“false” Priority=“71” SemiHidden=“false”
UnhideWhenUsed=“false” Name=“Colorful Shading”/>
<w:LsdException Locked=“false” Priority=“72” SemiHidden=“false”
UnhideWhenUsed=“false” Name=“Colorful List”/>
<w:LsdException Locked=“false” Priority=“73” SemiHidden=“false”
UnhideWhenUsed=“false” Name=“Colorful Grid”/>
<w:LsdException Locked=“false” Priority=“60” SemiHidden=“false”
UnhideWhenUsed=“false” Name=“Light Shading Accent 1”/>
<w:LsdException Locked=“false” Priority=“61” SemiHidden=“false”
UnhideWhenUsed=“false” Name=“Light List Accent 1”/>
<w:LsdException Locked=“false” Priority=“62” SemiHidden=“false”
UnhideWhenUsed=“false” Name=“Light Grid Accent 1”/>
<w:LsdException Locked=“false” Priority=“63” SemiHidden=“false”
UnhideWhenUsed=“false” Name=“Medium Shading 1 Accent 1”/>
<w:LsdException Locked=“false” Priority=“64” SemiHidden=“false”
UnhideWhenUsed=“false” Name=“Medium Shading 2 Accent 1”/>
<w:LsdException Locked=“false” Priority=“65” SemiHidden=“false”
UnhideWhenUsed=“false” Name=“Medium List 1 Accent 1”/>
<w:LsdException Locked=“false” UnhideWhenUsed=“false” Name=“Revision”/>
<w:LsdException Locked=“false” Priority=“34” SemiHidden=“false”
UnhideWhenUsed=“false” QFormat=“true” Name=“List Paragraph”/>
<w:LsdException Locked=“false” Priority=“29” SemiHidden=“false”
UnhideWhenUsed=“false” QFormat=“true” Name=“Quote”/>
<w:LsdException Locked=“false” Priority=“30” SemiHidden=“false”
UnhideWhenUsed=“false” QFormat=“true” Name=“Intense Quote”/>
<w:LsdException Locked=“false” Priority=“66” SemiHidden=“false”
UnhideWhenUsed=“false” Name=“Medium List 2 Accent 1”/>
<w:LsdException Locked=“false” Priority=“67” SemiHidden=“false”
UnhideWhenUsed=“false” Name=“Medium Grid 1 Accent 1”/>
<w:LsdException Locked=“false” Priority=“68” SemiHidden=“false”
UnhideWhenUsed=“false” Name=“Medium Grid 2 Accent 1”/>
<w:LsdException Locked=“false” Priority=“69” SemiHidden=“false”
UnhideWhenUsed=“false” Name=“Medium Grid 3 Accent 1”/>
<w:LsdException Locked=“false” Priority=“70” SemiHidden=“false”
UnhideWhenUsed=“false” Name=“Dark List Accent 1”/>
<w:LsdException Locked=“false” Priority=“71” SemiHidden=“false”
UnhideWhenUsed=“false” Name=“Colorful Shading Accent 1”/>
<w:LsdException Locked=“false” Priority=“72” SemiHidden=“false”
UnhideWhenUsed=“false” Name=“Colorful List Accent 1”/>
<w:LsdException Locked=“false” Priority=“73” SemiHidden=“false”
UnhideWhenUsed=“false” Name=“Colorful Grid Accent 1”/>
<w:LsdException Locked=“false” Priority=“60” SemiHidden=“false”
UnhideWhenUsed=“false” Name=“Light Shading Accent 2”/>
<w:LsdException Locked=“false” Priority=“61” SemiHidden=“false”
UnhideWhenUsed=“false” Name=“Light List Accent 2”/>
<w:LsdException Locked=“false” Priority=“62” SemiHidden=“false”
UnhideWhenUsed=“false” Name=“Light Grid Accent 2”/>
<w:LsdException Locked=“false” Priority=“63” SemiHidden=“false”
UnhideWhenUsed=“false” Name=“Medium Shading 1 Accent 2”/>
<w:LsdException Locked=“false” Priority=“64” SemiHidden=“false”
UnhideWhenUsed=“false” Name=“Medium Shading 2 Accent 2”/>
<w:LsdException Locked=“false” Priority=“65” SemiHidden=“false”
UnhideWhenUsed=“false” Name=“Medium List 1 Accent 2”/>
<w:LsdException Locked=“false” Priority=“66” SemiHidden=“false”
UnhideWhenUsed=“false” Name=“Medium List 2 Accent 2”/>
<w:LsdException Locked=“false” Priority=“67” SemiHidden=“false”
UnhideWhenUsed=“false” Name=“Medium Grid 1 Accent 2”/>
<w:LsdException Locked=“false” Priority=“68” SemiHidden=“false”
UnhideWhenUsed=“false” Name=“Medium Grid 2 Accent 2”/>
<w:LsdException Locked=“false” Priority=“69” SemiHidden=“false”
UnhideWhenUsed=“false” Name=“Medium Grid 3 Accent 2”/>
<w:LsdException Locked=“false” Priority=“70” SemiHidden=“false”
UnhideWhenUsed=“false” Name=“Dark List Accent 2”/>
<w:LsdException Locked=“false” Priority=“71” SemiHidden=“false”
UnhideWhenUsed=“false” Name=“Colorful Shading Accent 2”/>
<w:LsdException Locked=“false” Priority=“72” SemiHidden=“false”
UnhideWhenUsed=“false” Name=“Colorful List Accent 2”/>
<w:LsdException Locked=“false” Priority=“73” SemiHidden=“false”
UnhideWhenUsed=“false” Name=“Colorful Grid Accent 2”/>
<w:LsdException Locked=“false” Priority=“60” SemiHidden=“false”
UnhideWhenUsed=“false” Name=“Light Shading Accent 3”/>
<w:LsdException Locked=“false” Priority=“61” SemiHidden=“false”
UnhideWhenUsed=“false” Name=“Light List Accent 3”/>
<w:LsdException Locked=“false” Priority=“62” SemiHidden=“false”
UnhideWhenUsed=“false” Name=“Light Grid Accent 3”/>
<w:LsdException Locked=“false” Priority=“63” SemiHidden=“false”
UnhideWhenUsed=“false” Name=“Medium Shading 1 Accent 3”/>
<w:LsdException Locked=“false” Priority=“64” SemiHidden=“false”
UnhideWhenUsed=“false” Name=“Medium Shading 2 Accent 3”/>
<w:LsdException Locked=“false” Priority=“65” SemiHidden=“false”
UnhideWhenUsed=“false” Name=“Medium List 1 Accent 3”/>
<w:LsdException Locked=“false” Priority=“66” SemiHidden=“false”
UnhideWhenUsed=“false” Name=“Medium List 2 Accent 3”/>
<w:LsdException Locked=“false” Priority=“67” SemiHidden=“false”
UnhideWhenUsed=“false” Name=“Medium Grid 1 Accent 3”/>
<w:LsdException Locked=“false” Priority=“68” SemiHidden=“false”
UnhideWhenUsed=“false” Name=“Medium Grid 2 Accent 3”/>
<w:LsdException Locked=“false” Priority=“69” SemiHidden=“false”
UnhideWhenUsed=“false” Name=“Medium Grid 3 Accent 3”/>
<w:LsdException Locked=“false” Priority=“70” SemiHidden=“false”
UnhideWhenUsed=“false” Name=“Dark List Accent 3”/>
<w:LsdException Locked=“false” Priority=“71” SemiHidden=“false”
UnhideWhenUsed=“false” Name=“Colorful Shading Accent 3”/>
<w:LsdException Locked=“false” Priority=“72” SemiHidden=“false”
UnhideWhenUsed=“false” Name=“Colorful List Accent 3”/>
<w:LsdException Locked=“false” Priority=“73” SemiHidden=“false”
UnhideWhenUsed=“false” Name=“Colorful Grid Accent 3”/>
<w:LsdException Locked=“false” Priority=“60” SemiHidden=“false”
UnhideWhenUsed=“false” Name=“Light Shading Accent 4”/>
<w:LsdException Locked=“false” Priority=“61” SemiHidden=“false”
UnhideWhenUsed=“false” Name=“Light List Accent 4”/>
<w:LsdException Locked=“false” Priority=“62” SemiHidden=“false”
UnhideWhenUsed=“false” Name=“Light Grid Accent 4”/>
<w:LsdException Locked=“false” Priority=“63” SemiHidden=“false”
UnhideWhenUsed=“false” Name=“Medium Shading 1 Accent 4”/>
<w:LsdException Locked=“false” Priority=“64” SemiHidden=“false”
UnhideWhenUsed=“false” Name=“Medium Shading 2 Accent 4”/>
<w:LsdException Locked=“false” Priority=“65” SemiHidden=“false”
UnhideWhenUsed=“false” Name=“Medium List 1 Accent 4”/>
<w:LsdException Locked=“false” Priority=“66” SemiHidden=“false”
UnhideWhenUsed=“false” Name=“Medium List 2 Accent 4”/>
<w:LsdException Locked=“false” Priority=“67” SemiHidden=“false”
UnhideWhenUsed=“false” Name=“Medium Grid 1 Accent 4”/>
<w:LsdException Locked=“false” Priority=“68” SemiHidden=“false”
UnhideWhenUsed=“false” Name=“Medium Grid 2 Accent 4”/>
<w:LsdException Locked=“false” Priority=“69” SemiHidden=“false”
UnhideWhenUsed=“false” Name=“Medium Grid 3 Accent 4”/>
<w:LsdException Locked=“false” Priority=“70” SemiHidden=“false”
UnhideWhenUsed=“false” Name=“Dark List Accent 4”/>
<w:LsdException Locked=“false” Priority=“71” SemiHidden=“false”
UnhideWhenUsed=“false” Name=“Colorful Shading Accent 4”/>
<w:LsdException Locked=“false” Priority=“72” SemiHidden=“false”
UnhideWhenUsed=“false” Name=“Colorful List Accent 4”/>
<w:LsdException Locked=“false” Priority=“73” SemiHidden=“false”
UnhideWhenUsed=“false” Name=“Colorful Grid Accent 4”/>
<w:LsdException Locked=“false” Priority=“60” SemiHidden=“false”
UnhideWhenUsed=“false” Name=“Light Shading Accent 5”/>
<w:LsdException Locked=“false” Priority=“61” SemiHidden=“false”
UnhideWhenUsed=“false” Name=“Light List Accent 5”/>
<w:LsdException Locked=“false” Priority=“62” SemiHidden=“false”
UnhideWhenUsed=“false” Name=“Light Grid Accent 5”/>
<w:LsdException Locked=“false” Priority=“63” SemiHidden=“false”
UnhideWhenUsed=“false” Name=“Medium Shading 1 Accent 5”/>
<w:LsdException Locked=“false” Priority=“64” SemiHidden=“false”
UnhideWhenUsed=“false” Name=“Medium Shading 2 Accent 5”/>
<w:LsdException Locked=“false” Priority=“65” SemiHidden=“false”
UnhideWhenUsed=“false” Name=“Medium List 1 Accent 5”/>
<w:LsdException Locked=“false” Priority=“66” SemiHidden=“false”
UnhideWhenUsed=“false” Name=“Medium List 2 Accent 5”/>
<w:LsdException Locked=“false” Priority=“67” SemiHidden=“false”
UnhideWhenUsed=“false” Name=“Medium Grid 1 Accent 5”/>
<w:LsdException Locked=“false” Priority=“68” SemiHidden=“false”
UnhideWhenUsed=“false” Name=“Medium Grid 2 Accent 5”/>
<w:LsdException Locked=“false” Priority=“69” SemiHidden=“false”
UnhideWhenUsed=“false” Name=“Medium Grid 3 Accent 5”/>
<w:LsdException Locked=“false” Priority=“70” SemiHidden=“false”
UnhideWhenUsed=“false” Name=“Dark List Accent 5”/>
<w:LsdException Locked=“false” Priority=“71” SemiHidden=“false”
UnhideWhenUsed=“false” Name=“Colorful Shading Accent 5”/>
<w:LsdException Locked=“false” Priority=“72” SemiHidden=“false”
UnhideWhenUsed=“false” Name=“Colorful List Accent 5”/>
<w:LsdException Locked=“false” Priority=“73” SemiHidden=“false”
UnhideWhenUsed=“false” Name=“Colorful Grid Accent 5”/>
<w:LsdException Locked=“false” Priority=“60” SemiHidden=“false”
UnhideWhenUsed=“false” Name=“Light Shading Accent 6”/>
<w:LsdException Locked=“false” Priority=“61” SemiHidden=“false”
UnhideWhenUsed=“false” Name=“Light List Accent 6”/>
<w:LsdException Locked=“false” Priority=“62” SemiHidden=“false”
UnhideWhenUsed=“false” Name=“Light Grid Accent 6”/>
<w:LsdException Locked=“false” Priority=“63” SemiHidden=“false”
UnhideWhenUsed=“false” Name=“Medium Shading 1 Accent 6”/>
<w:LsdException Locked=“false” Priority=“64” SemiHidden=“false”
UnhideWhenUsed=“false” Name=“Medium Shading 2 Accent 6”/>
<w:LsdException Locked=“false” Priority=“65” SemiHidden=“false”
UnhideWhenUsed=“false” Name=“Medium List 1 Accent 6”/>
<w:LsdException Locked=“false” Priority=“66” SemiHidden=“false”
UnhideWhenUsed=“false” Name=“Medium List 2 Accent 6”/>
<w:LsdException Locked=“false” Priority=“67” SemiHidden=“false”
UnhideWhenUsed=“false” Name=“Medium Grid 1 Accent 6”/>
<w:LsdException Locked=“false” Priority=“68” SemiHidden=“false”
UnhideWhenUsed=“false” Name=“Medium Grid 2 Accent 6”/>
<w:LsdException Locked=“false” Priority=“69” SemiHidden=“false”
UnhideWhenUsed=“false” Name=“Medium Grid 3 Accent 6”/>
<w:LsdException Locked=“false” Priority=“70” SemiHidden=“false”
UnhideWhenUsed=“false” Name=“Dark List Accent 6”/>
<w:LsdException Locked=“false” Priority=“71” SemiHidden=“false”
UnhideWhenUsed=“false” Name=“Colorful Shading Accent 6”/>
<w:LsdException Locked=“false” Priority=“72” SemiHidden=“false”
UnhideWhenUsed=“false” Name=“Colorful List Accent 6”/>
<w:LsdException Locked=“false” Priority=“73” SemiHidden=“false”
UnhideWhenUsed=“false” Name=“Colorful Grid Accent 6”/>
<w:LsdException Locked=“false” Priority=“19” SemiHidden=“false”
UnhideWhenUsed=“false” QFormat=“true” Name=“Subtle Emphasis”/>
<w:LsdException Locked=“false” Priority=“21” SemiHidden=“false”
UnhideWhenUsed=“false” QFormat=“true” Name=“Intense Emphasis”/>
<w:LsdException Locked=“false” Priority=“31” SemiHidden=“false”
UnhideWhenUsed=“false” QFormat=“true” Name=“Subtle Reference”/>
<w:LsdException Locked=“false” Priority=“32” SemiHidden=“false”
UnhideWhenUsed=“false” QFormat=“true” Name=“Intense Reference”/>
<w:LsdException Locked=“false” Priority=“33” SemiHidden=“false”
UnhideWhenUsed=“false” QFormat=“true” Name=“Book Title”/>
<w:LsdException Locked=“false” Priority=“37” Name=“Bibliography”/>
<w:LsdException Locked=“false” Priority=“39” QFormat=“true” Name=“TOC Heading”/>
</w:LatentStyles>
<![endif]–><!–[if gte mso 10]>
<![endif]–>
Hi Shahzad,
I found another function to print the PDF file and it’s PrintLargePdf(). The Copies property is working using this function but the Collate property is not. It always print in the following order even if the Collate is set to True: 1,1,2,2,3,3 instead of 1,2,3,1,2,3.
Also, on some printer only the first page of the document is printed while on the other printer, all the pages are printed. This is still using the latest Apose.PDF.KIT component for .NET. The job report displayed on the printer that prints only the first page is “Completed with Error(016-799):Print Instruction Fail detected in Decomposer”.
Another issue that I found is when I tried to print on a different printer using a different papersize 8x13, the lower portion of the document is truncated (missing). It seems that it recognized the paper as 8x11 even though I’ve set the size in the Printersettings to 8x13.
Just to summarize the issues that I encountered:
1. Using PrintDocumentWithSettings method with the latest binaries for Aspose.PDF.Kit (version 5.7.0), the copies property on the PrinterSettings is still not working when the number specified is greater than 1. The actual printed copies are multiplied by the value of the property. Like when the Copies is set to 2, the actual copies printed are 4. When it is set it to 3, the copies printed are 9.
2. Using PrintLargePDF method, the Copies property is working fine but the Collate is not when the value is True. It always print the pages in this order 1,1,2,2,3,3 instead of 1,2,3,1,2,3.
3. Using PrintLargePDF method, only the first page is printed on the printer FUJI Xerox FX DocuCentre-IV C2260 PCL 6 but on HP LaserJet 4000 Series PCL 6, all the pages are printed. The job status displayed on the FUJI Xerox is “Completed with Error(016-799):Print Instruction Fail detected in Decomposer”.
4. When printing a PDF on which its size is 8x13 (regardless of which function is used), the lower portion of the document is not printed on the printer HP LaserJet 4000 Series PCL 6. It is working fine on FUJI Xerox FX DocuCentre-IV C2260 PCL 6. It seems like the document is treated as 8x11 even the proper size is specified in the PageSettings.Papersize.
5. Tried the new merged component. Using the same code to print the PDF, I can confirm that the document is being sent on the printer because I can see it on the printer window but nothing is printed on the printer. No error appears. What could be the cause of this?
I would also like to ask if there’s a way to scale the PDF during print. For example, I have a setting on my print dialog to scale the PDF document down by 80% and when I send this to printer, the printed document should be displayed 50% smaller. Is there a way to handle this on the component?
I am attaching the input PDF files. Please let me know if you need anything for me to be able to replicate the issue.
June
Hi June,
We’re looking into this problem at our end. However, kindly confirm that while printing the PDF using PrintDocumentWithSettings method you’re having problem only with the number of copies, while no other issue is occurring with this method.
Regards,
Not only the copies. This issue occurs on both methods:
When printing a PDF on which its size is 8x13, the lower portion of the document is not printed on the printer HP LaserJet 4000 Series PCL 6. It is working fine on FUJI Xerox FX DocuCentre-IV C2260 PCL 6. It seems like the document is treated as 8x11 even the proper size is specified in the PageSettings.Papersize.
About my question on scaling, is this supported by the component?
Thanks.
Hi June,
Thank you very much for sharing more details. We’re further investigating this issue at our end and you’ll be updated with the results the earliest possible.
We’re sorry for the inconvenience.
Regards,
Just to give you an update, the issue on the paper size on the HP Printer is just a driver issue. I tried to uninstall/reinstall the printer on the machine and its printing okay after that.
The other issues haven’t been resolved yet. I would just like to ask were you able to replicate the other issues I mentioned (copies, scaling, using printLargePDF method and printing with the new merged component)? We also have an existing license on the Aspose.PDF and we are looking to use the new merged component but we are not able print programmatically using the new merged component.
Hi June,
I have reproduced the issue with merged Aspose.Pdf printing and logged it as PDFNEWNET-29161 in our issue tracking system. However, I’m still unable to reproduce the other issues at my end. I’m investigating these issues. You’ll be updated with the results accordingly.
We’re sorry for the inconvenience.
Regards,
Hi Shahzad,
Thanks for looking into this. As June mentioned, we were hoping to use the merged component for our printing needs since we already have licenses for it. However, due to the issues and the time constraint on our end, the situation is forcing us to buy licenses for Pdf.Kit since it is at least working mostly except for the two areas (multiple Copies and Scaling).
Is there a way to set scaling using Aspose Pdf.Kit?
Thanks,
Hardik
Hi Hardik,
I’m afraid, I’m unable to find any scaling attribute either on the print dialog or in the PageSettings class. Could you please share some snapshot of the scaling attribute you’re referring to? Moreover, could you please see if Margins can help you in this scenario?
Regards,
Hi Shahzad,
Scale is a numeric field on the dialog. It indicates the percentage
of how small the document is to be scaled during print. If I enter 50%
on the field, the page should be printed in the paper 50% smaller (on
the upper left).
I tried to play around with the margin settings but can’t get the desired result. I basically compute for the right and bottom margin width based on the scale value and set the autoresize to True (if i set the autoresize to False, seems like the margin settings is ignored). The output is always way too small than the desired result. I also don’t think this will work if the scaled value is more than 100.
Thanks,
June
Hi June,
I’m sorry to share with you that PdfViewer currently doesn’t support scaling; however, I have logged a new feature request as PDFNEWNET-29189 in our issue tracking system to further investigate and then provide support for this feature. Also, I’m afraid, this feature can only be supported in the merged Aspose.Pdf version, as the Aspose.Pdf.Kit for .NET will be discontinued at the start of October.
As far as the issue with multiple copies is concerned, we’re still trying to reproduce it at our end. You’ll be updated with the results the earliest possible. Please spare us some time for detailed investigation.
We’re sorry for the inconvenience.
Regards,
Hi Shahzad,
I’d like to ask if you have any updates on these issues?
Copies property is not working
Merged component is not printing
Scaling feature
Do you have a timeline as when will these be fixed? Also, will the fixes be included on the merged component or as hotfix for the Aspose PDF Kit.
Thanks,
June
Hi June,
I’m sorry to inform you that these issues are not yet resolved. As far as the second and third issues are concerned, I have asked our team regarding the ETA of these issues. You’ll be updated as soon as the response is received. However, I’m afraid, we’re still unable to reproduce the issue with the Copies property. We’re trying to reproduce it at our end and as soon as it is reproduced, we’ll try to investigate the cause and share the estimate with you.
We’re sorry for the inconvenience.
Regards,
Hi Shahzad,
Do you have any updates on the ETA? We would like to know the ETA for these issues so we could plan accordingly. Also, the temporary license that we have for the PDF.Kit is only good until October (we were given a temporary license for the PDF.Kit because we cannot use our existing PDF license to the merged component since printing is not working).
For the issues that you cannot replicate, maybe we can discuss this over the chat (with desktop sharing) so I could show it to you. Would that be possible?
Thanks,
June
Hi June,
The two issues which were logged already are expected to be resolved in the new merged Aspose.Pdf for .NET. The release containing these fixes will be published early November 2011. As we’re unable to reproduce the number of copies issue at our end in any way, it is not feasible to fix that issue. Also, I would like to share that in order to investigate the issues in detail our development team needs to reproduce the issue at our end; I’m afraid, this won’t be feasible with the help of remote desktop sharing. So, I would suggest that we wait for the above mentioned two issues which will also make the number of copies issue go away as well.
I hope you understand. If you have any further questions, please do let us know.
Regards,