Currently i am closely following the example provided in "Add Image in an Existing PDF File (Facades)"
Here are the sample of the codes :
float lowerLeftX = 510.5F;
float lowerLeftY = 21F;
float upperRightX = 681F;
float upperRightY = 33F;
for (int i = 0; i < 4; i++)
mender = new PdfFileMend();
float lLeftX = lowerLeftX + (i * distance);
float lLeftY = lowerLeftY;
float uRightX = upperRightX + (i * distance);
float uRightY = upperRightY;
bool returnValue = mender.AddImage(@"C:\Image.jpg", 1, lowerLeftX, lowerLeftY, upperRightX, upperRightY);
throw new Exception("Exception");
Basically my objective is to draw a series of 8 vertical lines using a custom logic. In this example, i have simplified it by just drawing 4 series of vertical lines.
Apparently the code can only draw up until 4 vertical lines. At the fifth execution, the AddImage method returns the false value. I am not sure why it returns the false value.
For your information, i have independently drawn the lines at the designated coordinate and it works properly.
I guessed that there is a limitation in opening and closing the PdfFileMend, please correct me if i am wrong.