Sign In  Sign Up Live-Chat

Absolutely positioned images move depending on other images

Last post 07-12-2007, 6:01 PM by davidpi. 8 replies.
Sort Posts: Previous Next
  •  07-04-2007, 11:26 PM 82784

    Absolutely positioned images move depending on other images

    Attachment: Present (inaccessible)

    I created a page with 7 <fo:block-containers which are all absolutely positioned.  When output to pdf the image in container #7 (the orange image) is on the second page in roughly the same spot I expected it to be on the first page.  If I remove any of the other <fo:block-containers on the page, or even just remove the image from one of them, the document goes back to a single page and my orange image is where I expected it to be.

    Is there any way to force my orange image to stay on the first page?

     
  •  07-05-2007, 7:22 AM 82822 in reply to 82784

    Re: Absolutely positioned images move depending on other images

    Hi,

    Thank you for considering Aspose.

    I reduced the margin-bottom of page to 15pts and it worked. Please change it like:

    <fo:simple-page-master master-name="mypage"

    margin-top="36pt" margin-bottom="15pt" margin-left="36pt" margin-right="36pt" page-width="595pt" page-height="842pt">

    If you need more help, please do let us know.

    Thanks.

    Adeel Ahmad
    Support Developer
    Aspose Changsha Team
    http://www.aspose.com/Wiki/default.aspx/Aspose.Corporate/ContactChangsha.html

     
  •  07-08-2007, 9:14 PM 83116 in reply to 82822

    Re: Absolutely positioned images move depending on other images

    Attachment: Present (inaccessible)

    I removed my margins and the test case I submitted worked.  I have been able to reproduce the issue in another test case (the code is attached, it uses the same images as in the first post).  This new test case does not have any margins on the page and the fo:block-declarations have been moved in a little so they are not touching the edges.

    In the new test case, the component #7 moves onto two pages.  If any other component is removed (try component #4, the yellow image, as it seems unrelated) then component #7 is now on one page again.

    I have found that this appears to affect the last component that appears in the code.  If I move component #4 underneath component #7 in the code, then this breaks over two pages.

     
  •  07-09-2007, 5:07 AM 83158 in reply to 83116

    Re: Absolutely positioned images move depending on other images

    Hi,

    I think I am able to reproduce this error. I will discuss this with the developers and we will let you as soon as solution is found. Meanwhile, you can try by increasing the page height.

    Thanks.

    Adeel Ahmad
    Support Developer
    Aspose Changsha Team
    http://www.aspose.com/Wiki/default.aspx/Aspose.Corporate/ContactChangsha.html

     
  •  07-10-2007, 10:00 AM 83413 in reply to 83158

    Re: Absolutely positioned images move depending on other images

    Attachment: Present (inaccessible)
    We have fixed this bug. Please try the attachment before we publishing the hotfix.
    Tommy Wang
    Lead Developer
    Aspose Changsha Team
    About Us
    Contact Us
     
  •  07-10-2007, 6:44 PM 83479 in reply to 83413

    Re: Absolutely positioned images move depending on other images

    Thank-you for the hotfix.  I have tested and get the results I expect.

    I found that I can not set a size for fo:block-containers anymore.

    <fo:block-container top="100pt" left="100pt" position="absolute" height="200pt" width="200pt" background-color="#99FF66">
     <fo:block>
      height 200pt, width 200pt
     </fo:block>
    </fo:block-container>

     
  •  07-10-2007, 9:41 PM 83499 in reply to 83479

    Re: Absolutely positioned images move depending on other images

    Hi,

    I am able to reproduce this error. We will try to fix it soon.

    Thanks.

    Adeel Ahmad
    Support Developer
    Aspose Changsha Team
    http://www.aspose.com/Wiki/default.aspx/Aspose.Corporate/ContactChangsha.html

     
  •  07-12-2007, 7:55 AM 83854 in reply to 83499

    Re: Absolutely positioned images move depending on other images

    Attachment: Present (inaccessible)
    Please try the attachment before we publishing the hotfix.
    Tommy Wang
    Lead Developer
    Aspose Changsha Team
    About Us
    Contact Us
     
  •  07-12-2007, 6:01 PM 83971 in reply to 83854

    Re: Absolutely positioned images move depending on other images

    Thank-you for the hotfix.  I have tried it and can no longer reproduce either of the issues raised.
     
View as RSS news feed in XML