Image size and spacing issue

Hi @asad.ali,

This is regarding “Image logo and spacing issue” between the pdf file generated directly using aspose.pdf vs pdf file generated using aspose.cells conversion. The context is explained as below.

  1. PDF file generated using Aspose.Pdf - it is a straight forward approach, where read image first followed by row title and row data

  2. PDF file generated using Aspose.cells excel-to-pdf conversion approach - in this approach,
    a. first converting the excel file having the row title and row data to pdf file before converting to pdf adding few dummy rows in the first sheet at the beginning to reserve this space for inserting the image.
    b. load the pdf file generated in the first point
    c.
    pdf file generated using aspose excel-to-pdf conversion.zip (19.8 KB)

665.pdf (25.0 KB)

Please only check image and spacing only
add logo and other details

Now if you observe both the pdf files, you will find that both are not looking similar.

Please suggest to resolve this issue.

I have enclosed both the pdfs.

  1. pdf generated using aspose-pdf
  2. pdf generated using as-pose-excel conversion

@koteswaragunda

Can you please provide more details about the specific differences in image size and spacing that you are observing between the two PDF files?

I have enclosed the file, the details are, in the pdf file generated using conversion the image and logo are little right justified when compare with pdf generated directly. Can you please suggest
actual-pdf-gen-using-excel-to-pdf.png (96.4 KB)

expected rresult.png (77.4 KB)

@koteswaragunda

We have checked the files shared by you. Can you please share the code snippet that you have used to generate the PDF file with Aspose.PDF? Also, please share the logo image for our reference so that we can test the scenario in our environment and address it accordingly.