Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
148537 | Oct 24,2019 07:29 AM UTC | Oct 25,2019 09:11 AM UTC | WPF | 1 |
![]() |
Tags: PDF |
// Create a PDF Document.
PdfDocument doc = new PdfDocument();
//Add pages to the document
PdfPage page = doc.Pages.Add();
//Create PDF graphics for the page
PdfGraphics graphics = page.Graphics;
//Create a Metafile instance
PdfMetafile metaChart = new PdfMetafile(DataPathBase + "BoxOk.emf");
RectangleF rect = new RectangleF(0, 2, 12, 12);
//Draw the Metafile in the page
graphics.DrawImage(metaChart, rect);
//Save and close the document
doc.Save("Sample.pdf");
doc.Close(); |
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.