diff --git a/src/app/commands/pdf_import.rs b/src/app/commands/pdf_import.rs index 2d3ca8eed..b60ecc7be 100644 --- a/src/app/commands/pdf_import.rs +++ b/src/app/commands/pdf_import.rs @@ -111,8 +111,14 @@ impl OpenCADStudio { { continue; } + // Rebuilt from its components: one separator style, the platform's. + let stored = file + .components() + .collect::() + .to_string_lossy() + .into_owned(); let mut raster = codec::entities::RasterImage::with_size( - file.to_string_lossy().as_ref(), + &stored, image.insertion, image.width as f64, image.height as f64,