Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Show PDF content inside a section in application

    Hi ,

    I am using SmartClient Version: v11.1p_2017-07-09/PowerEdition Deployment (built 2017-07-09)

    I need to display pdf content in a small section i have in my application. To get the content i hit the web service and the web service can be made to return the pdf.
    How can i show the PDF content in my application in the required section.

    #2
    Hi Swatia,
    Have you seen this showcase sample: http://www.smartclient.com/smartclie...sizeIncrease=4
    If you change it:
    Code:
    isc.VLayout.create({width:"100%", height:"100%", members:[
    
        isc.HStack.create({height:50, layoutMargin:10, membersMargin:10, membersWidth:300, members:[
            isc.IButton.create({title:"Wikipedia: Ajax", autoFit: true,
                                click:"myPane.setContentsURL('http://en.wikipedia.org/wiki/Ajax_%28programming%29')"}),
            isc.IButton.create({title:"CIA World Factbook: USA", autoFit: true,
                                click:"myPane.setContentsURL('https://www.cia.gov/library/publications/the-world-factbook/geos/us.html')"})
        ]}),
    
        isc.HTMLPane.create({
            ID:"myPane",
            showEdges:true,
            contentsURL:"http://orimi.com/pdf-test.pdf",
            contentsType:"page"
        })
    
    ]})
    and hit try then you will get what you need, I think.
    MichalG
    ps pdf viewer plugin to browser has to be installed probably...

    Comment


      #3
      Thanks michalg

      It works.

      Comment

      Working...
      X