EPS to PDF with aspose .net destoy original design size

Hello dear Aspose team,

We are customer of Aspose lib since quite some years and was facing a lot of customer complain in terms of converted files from EPS to PDF, maybe we are doing something wrong so you might be able to point to our silly mistakes.

So what we do it we convert EPS to PDF (code provided bellow), and this will produce the PDF with wrong size. Original size of the test rect 150x150, however after re-importing it become 112.50x112.50 mm

image.png (71.9 KB)

However if I run EPS->PDF via aspose website Convert EPS to PDF | Online and Free it does right job, not sure which mechanism behind.

image.png (55.0 KB)

00400866 - test dimenzije.zip (812.2 KB)

                using var image = Image.Load(stream);

                //Obtain default saving options defined for each image
                ImageOptionsBase exportOptions = new PdfOptions();

                //If loaded image is vector, need to specify vector rasterization options
                //for export to another vector
                if (image is VectorImage vImage)
                {
                    format.PageWidth = image.Width;
                    format.PageHeight = image.Height;
                    format.Positioning = PositioningTypes.DefinedByDocument;
                    exportOptions.VectorRasterizationOptions = format;
                }

                image.Save(pdfStream, exportOptions);

UPDATE
24.12 version of nuget solves the problem with scaling.

Update:
Just upgraded Aspose.Image from 22.7 → 24.12 and problem seems to be gone.
Not sure if our cur license allows such update ? any way to check this, sadly i was not the one who purchased it.
I will try to validate it further.

@VartanSaakian, In the latest versions we have improved the EPS, so it is quite possible that these problems have been solved.
Regarding the license, please ask your question here.
The only thing I can advise is to set the size in the export options for EPS to be 1.3333 times larger.

format.PageWidth = image.Width/0.75f;
format.PageHeight = image.Height/0.75f;

Hi @stanislav.popov thanks a lot for your reply, yeah looks very promising also some of our CDR file issues seems resolved. It looks we need new license and we gonna buy next week :).

I tried your suggestion but in 22.7 it did not help sadly :frowning:

@VartanSaakian, The new version is the best solution!