Free Support Forum - aspose.com

InsertImage Successful but

I have a loop which inserts images first and then text following. The
first iteration of the loop has a problem where there’s a big space gap
between the picture and text. Yet when continuing throughout the loop, the
picture and text fits nicely together.



########## BEGIN OUTPUT###############

{image 1}

.

.

[BIG SPACE GAP]

.

.

Text description of image 1

.

{image 2}

Text description of image 2

.

{image 3}

Text description of image 3

.

{image 4}

Text description of image 4

#############END OUTPUT######################



The loop uses the same code but why does the first loop have a big gap?

Nevermind, I found out that setting the LineSpacingRule to “exactly” a
certain size was messing up the document. If I change it back to not
“exactly”, everything looks fine.