Sign In  Sign Up Live-Chat

aspose.pdf for java on iseries

Last post 07-03-2007, 3:25 PM by AdeelTaseer. 9 replies.
Sort Posts: Previous Next
  •  06-28-2007, 9:33 AM 82152

    aspose.pdf for java on iseries

    Hi,

    I'm trying to create a pdf using aspose.pdf for java on iseries. This works for a simple pdf (text + image + heading + ...), but some things don't work. For example : I can't set the pagesetup (no errors, but no results), I also can't start on a new page (setFirstParagraph doesn't work) ...
    AddInlineParagraph --> not known ?

    Am I doing something wrong ? Can someone help me ?

    Here some code :

    </SPAN></P> <P><SPAN class=UserText>O_PageSetup = Section$getPageSetup(O_Section);&nbsp;
    PageSetup$setPageWidth(O_PageSetup:A4Height);&nbsp;&nbsp;
    PageSetup$setPageHeight(O_PageSetup:A4Width);&nbsp;&nbsp;
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    O_MarginInfo = MarginInfo$newMarginInfo();&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    MarginInfo$setTop(O_MarginInfo:72);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    MarginInfo$setBottom(O_MarginInfo:72);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    MarginInfo$setLeft(O_MarginInfo:90);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    MarginInfo$setRight(O_MarginInfo:90);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    PageSetup$setMargin(O_PageSetup:O_MarginInfo);&nbsp; </SPAN><SPAN class=UserText>

    </SPAN></P> <P><SPAN class=UserText>If O_Segments &lt;&gt; *Null;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    &nbsp; O_Segment = Segments$Add(O_Segments);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    &nbsp; Segment$addInlineParagraph(O_Segment:O_Image);&nbsp;
    EndIf;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></P> <P><SPAN class=UserText>

    ...

    Thanks for your help !

     
  •  06-28-2007, 10:06 AM 82160 in reply to 82152

    Re: aspose.pdf for java on iseries

    PageSetup problem solved.

    I had to specify this on pdf-document level !!

    setFirstParagraph doesn't work ?

    Kind regards

     
  •  06-28-2007, 10:17 AM 82163 in reply to 82152

    Re: aspose.pdf for java on iseries

    Hi,

    Thank you for considering Aspose.

    Can you please tell me that you are trying to create an XML file or you are creating Pdf using an API? You can set pagewidth and Height properties. Inline Paragraph is not supported in Java version. Please make sure that you are using the latest version of Aspose.Pdf. Can you please elaborate your requirements so that we can help you more.

    Thanks.

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

     
  •  06-28-2007, 1:05 PM 82192 in reply to 82163

    Re: aspose.pdf for java on iseries

    Hi,

    I have checked and found that setFirstParagraph is not working properly. We have logged this issue. I will discuss this with the developers and we will let you know as soon as solution is found.

    Thanks.

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

     
  •  07-02-2007, 9:17 AM 82507 in reply to 82192

    Re: aspose.pdf for java on iseries

    Attachment: Present (inaccessible)
    This bug has been fixed. You can try the attachment. The hotfix will be pulished soon.
    Tommy Wang
    Lead Developer
    Aspose Changsha Team
    About Us
    Contact Us
     
  •  07-03-2007, 1:58 AM 82591 in reply to 82507

    Re: aspose.pdf for java on iseries

    Ok, Thanks.

    I'll try this fix and let you know if it works.

     
  •  07-03-2007, 2:15 AM 82593 in reply to 82591

    Re: aspose.pdf for java on iseries

    HGOAS4:

    Ok, Thanks.

    I'll try this fix and let you know if it works.

     

    Works fine !!

    Another question : Is it possible to set the "open"- view of a pdf to "Full screen"-view ?

    We want to start a pdf slight-show when the document is opened. I'm able to set the page-duration and page-transition, but I don't know where to set the "Full screen"-view.

    Another problem !
    When setting page-transition and page duration, this only works for the first page !! Isn't it a parameter on document-level ?

    Thanks !

     
  •  07-03-2007, 7:52 AM 82630 in reply to 82593

    Re: aspose.pdf for java on iseries

    Hi,

    I don't think you can view the Pdf file using Aspose.Pdf. This library is used to send the stream to the Browser and now you have to set the Full screen mode in the Browser. I think you can search on the internet how to show Browser in Full screen programmatically.

    To render/display a Pdf just like Adobe Acrobat Reader, in Java you can use JFrames or Panels to display Pdf in Full Screen mode and for that Aspose has another library named "Aspose.Pdf.Kit". Please refer to the following API.

    http://www.aspose.com/Products/Aspose.Pdf.Kit/JavaDoc/com/aspose/pdf/kit/PdfViewer.html

    Please correct me If I misunderstood.

    Thanks.

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

     
  •  07-03-2007, 10:07 AM 82657 in reply to 82630

    Re: aspose.pdf for java on iseries

    Ok, thanks.

    Is there still a problem for the page-transition/page-duration issue ?

    Kind regards,

    Goddeau H.

     
  •  07-03-2007, 3:25 PM 82681 in reply to 82657

    Re: aspose.pdf for java on iseries

    Hi,

    Sorry, I misunderstood. I have again checked the problem now and found that "Open" in Full screen mode is not supported in Java version. We will try to support that feature. Secondly. I think setPageTransition and setPageDuration are not working properly. I will discuss this with the developers and we will let you know as soon solution is found.

    Thanks.

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

     
View as RSS news feed in XML