Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
250
How to layer graphics on top of each other in PDF document?
posted

I need to generate a PDF document with multiple graphics layered on top of each other.  Is there some type of z-order or layering ability that I can gain access to?

Thanks in advance.

Parents
No Data
Reply
  • 250
    Verified Answer
    posted

    The answer is found in using a canvas.

    Infragistics.Documents.Report.Section.ISection section = report.AddSection();
    Infragistics.Documents.Report.ICanvas canvas = section.AddCanvas();

    Infragistics.Documents.Graphics.Image img = new Infragistics.Documents.Graphics.Image(appPath + "\\Images\\TitlePageBackground.jpg");
    img.Preferences.Converter = Infragistics.Documents.Graphics.ImageConverters.RGB;
    img.Preferences.Compressor = Infragistics.Documents.Graphics.ImageCompressors.JPEG;
    canvas.DrawImage(img, 0, 0, 600, 800);

    img = new Infragistics.Documents.Graphics.Image(appPath + "\\Images\\FourSlidePicture.jpg");
    img.Preferences.Converter = Infragistics.Documents.Graphics.ImageConverters.RGB;
    img.Preferences.Compressor = Infragistics.Documents.Graphics.ImageCompressors.JPEG;
    canvas.DrawImage(img, 0, 20, 575, 100);

Children
No Data