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.

Thu Jan 04, 2018 1:43 am

Hello,

Thanks for contacting us.
Now the issue has been resolved and it is under testing. Once the hotfix is available, I will let you know.

Sincerely,
Jane
E-iceblue support team
User avatar

Jane.Bai
 
Posts: 1156
Joined: Tue Nov 29, 2016 1:47 am

Mon Jan 08, 2018 8:38 am

Hello jperkinsSC,

Good day!.
Now the issue has been resolved and please download the hotfix(Spire.PDF Pack(Hot Fix) Version:3.9.584).

Sincerely,
Jane
E-iceblue support team
User avatar

Jane.Bai
 
Posts: 1156
Joined: Tue Nov 29, 2016 1:47 am

Tue Jan 09, 2018 3:29 pm

Thanks Jane - I will ask our team to test and see if both problems are resolved in this fix.

jperkinsSC
 
Posts: 93
Joined: Thu Oct 30, 2014 10:01 pm

Wed Jan 10, 2018 1:20 am

Hello,

Thanks for your response.
I'll look forward to your good news.

Sincerely,
Jane
E-iceblue support team
User avatar

Jane.Bai
 
Posts: 1156
Joined: Tue Nov 29, 2016 1:47 am

Mon Jan 15, 2018 9:16 pm

Hi Jane, per our development team, this particular issue has been resolved by the newest update. Thank you for all of your help.

jperkinsSC
 
Posts: 93
Joined: Thu Oct 30, 2014 10:01 pm

Tue Jan 16, 2018 2:38 am

Hi jperkinsSC,

Thanks for your valuable feedback.
Please feel free to contact us if you need any help.

Sincerely,
Jane
E-iceblue support team
User avatar

Jane.Bai
 
Posts: 1156
Joined: Tue Nov 29, 2016 1:47 am

Wed Jun 20, 2018 8:59 pm

hi

we again have the same issue with one of our pdf documents , lot of data is missing when we convert the pdf into images,

we also tried the latest spire.pdf.wpf dll 4.6.1 the issue is still there ,

We have send an email on support@e-iceblue.com containing the pdf we are using along with the results what we get.

Looking forward for you response

Regards

jperkinsSC
 
Posts: 93
Joined: Thu Oct 30, 2014 10:01 pm

Thu Jun 21, 2018 3:10 am

Hello jperkinsSC,

Thank you for your post.
I have reproduced the issues except for the one on the first page, please check twice.
In addition, I have logged the issues in our bug tracking system. Will keep you informed about the progress.

Sincerely,
Jane
E-iceblue support team
User avatar

Jane.Bai
 
Posts: 1156
Joined: Tue Nov 29, 2016 1:47 am

Mon Jun 25, 2018 7:36 pm

Hi Jane

any update please ?

jperkinsSC
 
Posts: 93
Joined: Thu Oct 30, 2014 10:01 pm

Tue Jun 26, 2018 1:58 am

Hello jperkinsSC,

Thank you for your inquiry.
Our dev team is investigating your case. Once there's any significant progress, we will let you know.
So sorry for the inconvenience caused.

Sincerely,
Jane
E-iceblue support team
User avatar

Jane.Bai
 
Posts: 1156
Joined: Tue Nov 29, 2016 1:47 am

Fri Jun 29, 2018 7:20 pm

Good afternoon, can you please update us? We have a customer met standing by awaiting the fix.

jperkinsSC
 
Posts: 93
Joined: Thu Oct 30, 2014 10:01 pm

Mon Jul 02, 2018 6:36 am

Hello jperkinsSC,

Thank you for contacting us.
The issue has been resolved. Concerning your urgent situation, we have compiled a temporary version for you.
Please download it from the following link.
https://www.e-iceblue.com/downloads/TempVersion/spire.pdf_4.6.11.zip

Sincerely,
Jane
E-iceblue support team
User avatar

Jane.Bai
 
Posts: 1156
Joined: Tue Nov 29, 2016 1:47 am

Tue Jul 03, 2018 4:55 am

Thank so much. We will implement and test.

jperkinsSC
 
Posts: 93
Joined: Thu Oct 30, 2014 10:01 pm

Tue Jul 03, 2018 6:53 am

Hello jperkinsSC,

Thank you for your response.
Will look forward to your feedback.

Sincerely,
Jane
E-iceblue support team
User avatar

Jane.Bai
 
Posts: 1156
Joined: Tue Nov 29, 2016 1:47 am

Fri Jul 06, 2018 1:17 am

Hi Jane

Thanks for the update, It does resolve the issue we reported earlier , but we have another issue that was not present earlier. The issue is very inconsistent, it occurs on different pages each time when we convert the pdf to images. I have attached the sample for you to see ( some junk text also added with the original text).

I have emailed you the original documents that we are using along with the random images that have this problem

Here is the code sample that we are using

Code: Select all
 private void btnAddimage_Click(object sender, RoutedEventArgs e)
        {
            var path = @"1.pdf";
            var outputPath = Path.Combine("split_Addimage", Path.GetDirectoryName(path));

            using (var Doc = new PdfDocument(path))
            {
                string pattern = Path.Combine(outputPath, Path.GetFileNameWithoutExtension(path) + "_{0}.pdf");
                Doc.Split(pattern, 1);
            }

            path = @"2.pdf";
            using (var Doc = new PdfDocument(path))
            {
                string pattern = Path.Combine(outputPath, Path.GetFileNameWithoutExtension(path) + "_{0}.pdf");
                Doc.Split(pattern, 1);
            }



            foreach (var doc in Directory.GetFiles(outputPath)) //used to get all the splitted docuemtns
            {
                using (var pdfDocument = new PdfDocument(File.ReadAllBytes(doc)))
                {
                    var imagePath = "sig\\BuyerInitials.png";
                    var fileNameWOExt = Path.Combine(Path.GetDirectoryName(doc),Path.GetFileNameWithoutExtension(doc)) ;
                    ExportImage(pdfDocument, fileNameWOExt + ".pdf");
                    PdfImage pdfImageInit = PdfImage.FromFile(imagePath);
                    System.Drawing.RectangleF location = new System.Drawing.Rectangle(497, 753, 27, 18);
                    AddSignatureToPdf(pdfDocument, location, pdfImageInit);
                    pdfDocument.SaveToFile(fileNameWOExt + "_first.pdf");
                    ExportImage(pdfDocument, fileNameWOExt + "_first.pdf");
                   
                   


                    var imagePath2 = "sig\\BuyerSignature.png";
                    PdfImage pdfImageInit2 = PdfImage.FromFile(imagePath2);
                    System.Drawing.RectangleF location2 = new System.Drawing.Rectangle(397, 753, 27, 18);
                    AddSignatureToPdf(pdfDocument, location2, pdfImageInit2);

                    pdfDocument.SaveToFile(fileNameWOExt + "_second.pdf");
                    ExportImage(pdfDocument, fileNameWOExt + "_second.pdf");
                }
            }

        }

        private void AddSignatureToPdf(PdfDocument pdfDocument, System.Drawing.RectangleF rect, PdfImage pdfImage)
        {

            PdfPageBase page0 = pdfDocument.Pages[0];

            if (pdfImage.Width > 0 && pdfImage.Height > 0)
            {
                float imageAspectRatio = (float)pdfImage.Width / (float)pdfImage.Height;
                float newWidth = imageAspectRatio * rect.Height;
                if (newWidth <= rect.Width)
                {
                    float delta = rect.Width - newWidth;
                    rect.X += delta / 2f;
                    rect.Width = newWidth;
                }
                else
                {
                    imageAspectRatio = (float)pdfImage.Height / (float)pdfImage.Width;
                    float newHeight = imageAspectRatio * rect.Width;
                    float delta = rect.Height - newHeight;
                    rect.Y += delta;
                    rect.Height = newHeight;
                }
            }

            page0.Canvas.DrawImage(pdfImage, rect);

        }

        private void ExportImage(PdfDocument pdfDocument, string finalPdfPath)
        {
            Application.Current.Dispatcher.Invoke(() =>
            {
               
                using (var doc = new PdfDocument(finalPdfPath))
                    SaveImage(doc.SaveAsImage(0, 192D, 192D), finalPdfPath + "_grf.jpg" /*+ ".png"*/);

               
            });

        }



Looking forward for your response

Regards

jperkinsSC
 
Posts: 93
Joined: Thu Oct 30, 2014 10:01 pm

Return to Spire.PDF

cron