Does gfx.DrawImage(form,box) draw as an embedded image? If form is PDF content, does DrawImage draw as PDF content or a rasterized image?
I need to drop the contents of a page onto another pdf page within a box, is using XGraphics the way to go? Or is there a better way?
using (var form = XPdfForm.FromFile(drawingPath))
{
using (var gfx = XGraphics.FromPdfPage(templatePage))
{
var box = new XRect(0, 0, 300, 300);
gfx.DrawImage(form, box);
}
}
PDF content is drawn as PDF content when using gfx.DrawImage when outputting to PDF. PDF content can not be used when targeting a Graphics object or RTF.
Does
gfx.DrawImage(form,box)
draw as an embedded image? Ifform
is PDF content, doesDrawImage
draw as PDF content or a rasterized image?I need to drop the contents of a page onto another pdf page within a
box
, is using XGraphics the way to go? Or is there a better way?