Loading PDF file using Htmlviewer in Linux

  1. 2 months ago
    Edited 2 months ago

    I need to load a pdf file using htmlviewer in desktop app. It's not working in Linux machine. Is there any way to load a pdf file either using htmlviewer or other cöntrols in Linux?(other than fileitem.launch method).
    Please help.
    Thanks

  2. Tanner L

    is not verified Oct 8 Pre-Release Testers Toronto, Canada

    @EduardoGutierrez de Oliveira has written an excellent class for displaying PDF's in a HTMLViewer. See the conversation https://forum.xojo.com/conversation/post/400601 for more info. He has kindly published the source code at https://github.com/eduo/XojoPdfJs .

  3. Edited 2 months ago

    @Tanner L @EduardoGutierrez de Oliveira has written an excellent class for displaying PDF's in a HTMLViewer. See the conversation https://forum.xojo.com/conversation/post/400601 for more info. He has kindly published the source code at https://github.com/eduo/XojoPdfJs .

    In the example project(taken from the link you provided above) getting one error "Error opening file: No such file or directory" in Linux machine even if specify the correct location of pdf file. All the necessary files destination is proper.

    Please reply at the earliest.

  4. Eduardo G

    Oct 9 Pre-Release Testers Europe (Madrid, Spain)
    Edited 2 months ago

    @Hemalatha G In the example project(taken from the link you provided above) getting one error "Error opening file: No such file or directory" in Linux machine even if specify the correct location of pdf file.

    We're going to need a bit more explanation.

    @Hemalatha G All the necessary files destination is proper.

    It clearly is not :) The hard part is finding out why it isn't.

    Where are you getting the error? What file is trying to be opened? When did the error show up?

    @Hemalatha G Please reply at the earliest.

    This is not necessary :)

  5. @EduardoGutierrez de Oliveira We're going to need a bit more explanation.

    When running in linux it gives that error. In mac its fine

  6. Edited 2 months ago

    @EduardoGutierrez de Oliveira It clearly is not :) The hard part is finding out why it isn't.

    Where are you getting the error? What file is trying to be opened? When did the error show up?

    when loading file, i mean when we open a pdf file using the button and trying to load in htmlviwer it gives that error

  7. @Hemalatha G This is not necessary :)

    :)

or Sign Up to reply!