Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.

Tue Dec 08, 2020 1:31 pm

The project have coded using by .netCore3.1. Also I used FreeSpire.PDF v5.4. I convert the incoming pdf data to pdf using Spire.Pdf.PdfDocument and trigger the printing process.All tests on windows is successful. On Linux, it was able to convert the data(base64String) to pdfDocument.

System.Drawing.Common is used in Spire.PDF. I have not included this in the project references.

I could not understand what to do at this stage. All the DLLs I use are compatible with .net standard or .netCore. Also i am not getting any errors in windows either.How can i solve the problem?
Code: Select all
private static MBase innerPrintPdfDocument(PdfDocument pdf, Parameters parameters)
        {
            try
            {
                pdf.PrintSettings.PrinterName = parameters.PrinterName;
                pdf.PrintSettings.Landscape = parameters.IsLandscape;
                pdf.PrintSettings.Copies = parameters.NumberOfCopies;
                pdf.PrintSettings.Collate = parameters.Collate;
                pdf.PrintSettings.SelectSinglePageLayout();
                pdf.Print();
                pdf.Dispose();
                return new MSuccess();

            }
            catch (Exception ex)
            {
                return new MError(string.IsNullOrEmpty(ex.Message) ? ex.InnerException.Message : ex.Message, ((int)EErrorCode.Exception).ToString());
            }
        }

alixxxxxx
 
Posts: 4
Joined: Tue Dec 08, 2020 1:27 pm

Wed Dec 09, 2020 7:14 am

Hello,

Thanks for your inquiry.

I have reproduced your issue on Ubuntu and logged it in our issue tracking system with the ticket SPIREPDF-3868 for further investigation.

We will let you know if there is any update. Sorry for the inconvenience caused. If you have any other problem, please feel free to contact us.

Sincerely,
Marcia
E-iceblue support team
User avatar

Marcia.Zhou
 
Posts: 858
Joined: Wed Nov 04, 2020 2:29 am

Wed Dec 09, 2020 7:40 am

Thanks for your quick answer. Can I follow the issue on this post or should I follow the release notes?

Another question. I could not see the print method in new versions. Do you have a solution that can print pdf on ubuntu?
Last edited by alixxxxxx on Wed Dec 09, 2020 10:23 am, edited 1 time in total.

alixxxxxx
 
Posts: 4
Joined: Tue Dec 08, 2020 1:27 pm

Wed Dec 09, 2020 9:15 am

Hello,

Thanks for your reply.

For issue 1: Once there is any progress regarding the issue SPIREPDF-3868, we will notify you immediately under the post.

For issue 2: I am sorry that I have verified that the latest commercial version had the same issue. I am afraid that there is no solution available at this time.

If you have any other problem, please feel free to contact us.

Sincerely,
Marcia
E-iceblue support team
User avatar

Marcia.Zhou
 
Posts: 858
Joined: Wed Nov 04, 2020 2:29 am

Return to Spire.PDF