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 Apr 26, 2018 12:17 pm

Hello,

I have two question,

When i generate PDF from image, the image move to right/bottom, is that due to Evaluation text to appear, because it hide some of the image, or it's a bug ?
- Pdf in attachments*

In previous topic i was talking about PDFCertification i wanna know witch one is better (Performance, the way, Security)
Itextsharp or PdfCertified to make pdf certification?

Thanks.

walidrezzouqi
 
Posts: 6
Joined: Mon Apr 23, 2018 12:01 pm

Fri Apr 27, 2018 2:47 am

Hello,

Thanks for your inquiry.
1. I found your attached document was corrupted. So please zip your input image and result Pdf file then upload it again. We will investigate the issue, once receive your documents.
2. Please use PdfCertificate to sign the Pdf file which is better than Itextsharp.

Best regards,
Simon
E-iceblue support team
User avatar

Simon.yang
 
Posts: 620
Joined: Wed Jan 11, 2017 2:03 am

Fri Apr 27, 2018 8:29 am

Hello,

We will make an update for PDFCertificate,

For the first issue there is the files in Drive and also in attachment : https://drive.google.com/drive/folders/15vYBtHy2VdkkutG3c54-IqU2YPvuQhow?usp=sharing

Thanks

walidrezzouqi
 
Posts: 6
Joined: Mon Apr 23, 2018 12:01 pm

Fri Apr 27, 2018 9:14 am

Hello,

Thanks for your prompt reply. Please refer to the below code snippet and try again which works well on my side. I was using Spire.PDF Pack(Hot Fix) Version:4.4.11.
Code: Select all
            // Create a pdf document with a section and page added.
            PdfDocument doc = new PdfDocument();
            PdfSection section = doc.Sections.Add();
            PdfPageBase page = doc.Pages.Add();

            //Load a tiff image from system
            PdfImage image = PdfImage.FromFile(@"ORIGINAL.png");
            //Set image display location and size in PDF
            float widthFitRate = image.PhysicalDimension.Width / page.Canvas.ClientSize.Width;
            float heightFitRate = image.PhysicalDimension.Height / page.Canvas.ClientSize.Height;
            float fitRate = Math.Max(widthFitRate, heightFitRate);
            float fitWidth = image.PhysicalDimension.Width / fitRate;
            float fitHeight = image.PhysicalDimension.Height / fitRate;
            page.Canvas.DrawImage(image, 0, 30, fitWidth, fitHeight);

            //save and launch the file
            doc.SaveToFile("image to pdf.pdf");
            doc.Close();

Best regards,
Simon
E-iceblue support team
User avatar

Simon.yang
 
Posts: 620
Joined: Wed Jan 11, 2017 2:03 am

Fri Apr 27, 2018 9:46 am

Hello,

everything looks good now in version 4.4.6

but after updating to version 4.4.11 we get an error i didn't investigate now i will give a feedback as soon as i can.

Walid.

walidrezzouqi
 
Posts: 6
Joined: Mon Apr 23, 2018 12:01 pm

Fri Apr 27, 2018 10:11 am

Hello,

Thanks for your quick reply. Looking forward to your further information.

Best regards,
Simon
E-iceblue support team
User avatar

Simon.yang
 
Posts: 620
Joined: Wed Jan 11, 2017 2:03 am

Return to Spire.PDF