Adding OMR (Optical Mark Recognition) image on every PDF page Options

Q:
PRODUCT: PDFNet SDK
VERSION: 4.8
OPERATING SYSTEM: Windows Server 2008
PROBLEM:

We process existing PDFs in order to add an OMR (Optical Mark
Recognition) Image on every Page. But we are unable to place the
image
near to the left border of the page, where the image should be. The
OMR lines don\'t go any further left than the leftmost existing
element on the PDF (see attachment, the OMR Marks should be 5mm long
as on page 2, but on the landscape pages - page 3 and following -
they
stop rendering on the leftmost edge of the existing elements). Page 2
is created with pdfnet sdk, the OMR position is fine. All pages have
the same crop box.
Why isn\'t the whole OMR image displayed?

Code snipped used to place the image:
writer.Begin(itr.Current(), false);
                    // Write OMR Graphic
                    omr.OMRIntData = omrData;
                    cropBox = itr.Current().GetCropBox();
                    if (cropBox.Height() > cropBox.Width())
                        bmp = new
System.Drawing.Bitmap(omr.GetOMRCode(OMRCode.Orientation.Portrait));
                    else
                        bmp = new
System.Drawing.Bitmap(omr.GetOMRCode(OMRCode.Orientation.Landscape));

                    Image img = Image.Create(doc, bmp);

                    // Create Image based on the orientation
                    if (cropBox.Height() > cropBox.Width())
                        //element = bld.CreateImage(img, new
Matrix2D(omr.ImageHeight, 0, 0, omr.ImageWidth, 17, 146));
                        element = bld.CreateImage(img, new
Matrix2D(bmp.Width/4.07, 0, 0, bmp.Height/4.07, OMR_Portrait_Pos_X,
OMR_Portrait_Pos_Y));
                    else
                        //element = bld.CreateImage(img, new
Matrix2D(omr.ImageWidth, 0, 0, omr.ImageHeight, 146, 555));
                        element = bld.CreateImage(img, new
Matrix2D(bmp.Width/4.07, 0, 0, bmp.Height/4.07, OMR_Landscape_Pos_X,
OMR_Landscape_Pos_Y));

                    writer.WriteElement(element);
                    //writer.WritePlacedElement(element);
                    writer.End();
-------------
A:

Are you using v.4.8 or v.5.8. Version 4.8 is quite updated so I
would
recommend upgrading to the latest version.

Your line to start writing to a PDF page should be:
  writer.Begin(itr.Current(), ElementWriter.WriteMode.e_overlay);

Alternatively you could use Stamper utility class (which is using
ElementBuilder/ElementWriter under the hood, but is easier to use):
   http://www.pdftron.com/pdfnet/samplecode.html#Stamper