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.