Problem in adding new page while creating pdf from text

Last post 02-16-2012, 12:15 AM by codewarior. 1 replies.
Sort Posts: Previous Next
  •  02-09-2012, 2:08 AM 360288

    Problem in adding new page while creating pdf from text Java

    Attachment: Present (inaccessible)
    Hi,

    I am trying to add new pages while creating pdf from text.
    i am using following code:

    loop( 5 times){
    Text objText = ....
    objText.setIsFirstParagraph(true);
    }
    this is creating multiple pages but i am getting blank pages in between generated document. for eg if i create 5 times then total pages will be 10 and every alternate page will be blank.

    Please let me know how to correct  this.
    Is there any other way to create new page ?

    Note:I attached the sample pdf generated with blank pages.


    --
    Saket
    Filed under: Aspose.PDF for Java
     
  •  02-16-2012, 12:15 AM 361972 in reply to 360288

    Re: Problem in adding new page while creating pdf from text

    Hello Saket,

    Thanks for using our products and sorry for replying you late.

    I have tested the scenario and have managed to notice the same problem that blank pages are being added when adding multiple instances of HTML text into PDF format and calling setIsFirstParagraph(...) method with true as an argument. For the sake of correction, I have logged this problem as PDFJAVA-33121 in our issue tracking system. We will further look into the details of this problem and will keep you updated on the status of correction. Please be patient and spare us little time.

    We apologize for the delay and inconvenience.


    Nayyer Shahbaz
    Support Developer, Aspose Sialkot Team
    About Us
    Contact Us

    Keep in touch! We're on Twitter and Facebook
     
View as RSS news feed in XML