Hello,
Thanks for your inquiry!
1) Our Spire.Pdf supports PNG, EMF and SVG image types. I did not reproduce your issue when testing EMF and SVG types with
Spire.Pdf v6.11.6, and here is my testing code. To help us reproduce your issue, please provide us with your EMF and SVG files. Thanks in advance.
- Code: Select all
PdfDocument pdf = new PdfDocument();
PdfPageBase page = pdf.Pages.Add();
float x = 0f;
float y = 50f;
//Select image type here(png,emf,svg)
PdfImage img = PdfImage.FromFile(@"E:\testdoc\picSvg1.svg");
page.Canvas.DrawImage(img, x, y);
//save
pdf.SaveToFile("imgSvg.pdf");
2) Our Spire.Pdf supports font fallback. When the font data is not embedded in pdf document, our program will read font data from computer according to the font name used in Pdf file. If the font is not installed on computer, we will use similar font installed on computer instead.
3) Our Spire.Pdf supports drawing the smaller Pdfs content on other Pdf at the specified location by page.Canvas.DrawTemplate() method. Please refer to the following code.
- Code: Select all
PdfDocument target = new PdfDocument();
target.LoadFromFile(@"E:\testdoc\target.pdf");
PdfDocument insert = new PdfDocument();
insert.LoadFromFile(@"E:\testdoc\insert.pdf");
PdfPageBase page = insert.Pages[0];
PdfPageBase newpage = target.Pages[0];
PdfTextFindCollection collection = newpage.FindText("aa", TextFindParameter.IgnoreCase);
//drawing by coordinates
newpage.Canvas.DrawTemplate(page.CreateTemplate(), collection.Finds[0].Position);
target.SaveToFile("InsertSmallPdf.pdf");
System.Diagnostics.Process.Start("InsertSmallPdf.pdf");
If the above code does not meet your needs, please provide us with your Pdfs and describe which pdf you need to insert into another pdf and which cell of another pdf is your target cell. Thanks in advance.
If you have any other problems, please feel free to contact us!
Sincerely,
Marcia
E-iceblue support team