Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Stirling-PDF
  3. PDF to Text/RTF fails

PDF to Text/RTF fails

Scheduled Pinned Locked Moved Solved Stirling-PDF
30 Posts 10 Posters 2.7k Views 10 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • girishG Offline
    girishG Offline
    girish
    Staff
    wrote on last edited by
    #10

    @archos I think this one is fixed with the latest update.

    archosA 1 Reply Last reply
    1
    • BerlinerB Offline
      BerlinerB Offline
      Berliner
      wrote on last edited by
      #11

      @girish this is right. Updated the app and now it works.

      1 Reply Last reply
      0
      • girishG girish has marked this topic as solved on
      • girishG Offline
        girishG Offline
        girish
        Staff
        wrote on last edited by
        #12

        OCR should also work better now. It was missing a bunch of packages.

        1 Reply Last reply
        4
        • girishG girish

          @archos I think this one is fixed with the latest update.

          archosA Offline
          archosA Offline
          archos
          wrote on last edited by archos
          #13

          @girish But converting to PDF doesn't work for me, I tried reinstalling the apps but it's the same.Snímek obrazovky_2023-07-01_17-34-26.png
          I also tried different formats DOC, XLS, XLSX, ODT.

          1 Reply Last reply
          1
          • necrevistonnezrN Offline
            necrevistonnezrN Offline
            necrevistonnezr
            wrote on last edited by
            #14

            For me, it’s doing something but doesn’t let me access the file after conversion - nothing happens:

            Jul 01 23:05:45 Running command: soffice --infilter=writer_pdf_import --convert-to doc --outdir /tmp/output_12731918207241714492 /tmp/input_12820457046940439487.pdfCommand output:
            Jul 01 23:05:45 convert /tmp/input_12820457046940439487.pdf -> /tmp/output_12731918207241714492/input_12820457046940439487.doc using filter : MS Word 97
            Jul 01 23:06:04 Running command: soffice --infilter=writer_pdf_import --convert-to docx --outdir /tmp/output_13110194667904771198 /tmp/input_2013883566298576050.pdfCommand output:
            Jul 01 23:06:04 convert /tmp/input_2013883566298576050.pdf -> /tmp/output_13110194667904771198/input_2013883566298576050.docx using filter : MS Word 2007 XML
            Jul 01 23:06:35 Running command: soffice --infilter=writer_pdf_import --convert-to rtf --outdir /tmp/output_12759007429764915141 /tmp/input_5102818123428729636.pdfCommand output:
            Jul 01 23:06:35 convert /tmp/input_5102818123428729636.pdf -> /tmp/output_12759007429764915141/input_5102818123428729636.rtf using filter : Rich Text Format
            
            1 Reply Last reply
            0
            • girishG Offline
              girishG Offline
              girish
              Staff
              wrote on last edited by
              #15

              @necrevistonnezr I noticed that for some of the conversions. The processing button would be disabled but the browser already downloaded the file under Downloads.

              1 Reply Last reply
              1
              • girishG Offline
                girishG Offline
                girish
                Staff
                wrote on last edited by
                #16

                @archos please try with v1.1.0 package . Think I have fixed it for real now.

                archosA 1 Reply Last reply
                3
                • girishG girish

                  @archos please try with v1.1.0 package . Think I have fixed it for real now.

                  archosA Offline
                  archosA Offline
                  archos
                  wrote on last edited by
                  #17

                  @girish Great, thanks so much for the update. Already the conversion to PDF format is working.

                  1 Reply Last reply
                  2
                  • L Offline
                    L Offline
                    LoudLemur
                    wrote on last edited by
                    #18

                    I tried this yesterday, pdf-to-rtf, pdf-to-txt. Both failed, and created empty files instead. Might it have been due to a lack of memory being allocated? App Version: 0.10.3

                    jdaviescoatesJ 1 Reply Last reply
                    1
                    • nebulonN Offline
                      nebulonN Offline
                      nebulon
                      Staff
                      wrote on last edited by
                      #19

                      Were there any errors shown or if the app crashed out of memory, you should see a notification about that in Cloudron. And just to be sure, have you tried other pdf documents?

                      1 Reply Last reply
                      0
                      • L LoudLemur

                        I tried this yesterday, pdf-to-rtf, pdf-to-txt. Both failed, and created empty files instead. Might it have been due to a lack of memory being allocated? App Version: 0.10.3

                        jdaviescoatesJ Offline
                        jdaviescoatesJ Offline
                        jdaviescoates
                        wrote on last edited by
                        #20

                        @LoudLemur said in PDF to Text/RTF fails:

                        I tried this yesterday, pdf-to-rtf, pdf-to-txt. Both failed, and created empty files instead.

                        Same.

                        @nebulon said in PDF to Text/RTF fails:

                        Were there any errors shown

                        No errors were shown on screen nor in the app logs.

                        @nebulon said in PDF to Text/RTF fails:

                        And just to be sure, have you tried other pdf documents?

                        Yes, I've tried numerous PDFs all with the same empty .txt file as the result.

                        I use Cloudron with Gandi & Hetzner

                        1 Reply Last reply
                        0
                        • girishG Offline
                          girishG Offline
                          girish
                          Staff
                          wrote on last edited by
                          #21

                          Yeah, I have never got the conversion to work. I think it's probably an upstream bug.

                          jdaviescoatesJ F 2 Replies Last reply
                          0
                          • girishG girish

                            Yeah, I have never got the conversion to work. I think it's probably an upstream bug.

                            jdaviescoatesJ Offline
                            jdaviescoatesJ Offline
                            jdaviescoates
                            wrote on last edited by
                            #22

                            @girish said in PDF to Text/RTF fails:

                            Yeah, I have never got the conversion to work.

                            So I guess this shouldn't be marked as solved.

                            @girish said in PDF to Text/RTF fails:

                            I think it's probably an upstream bug.

                            If that's the case perhaps @froodle can help?

                            I use Cloudron with Gandi & Hetzner

                            girishG 1 Reply Last reply
                            0
                            • jdaviescoatesJ jdaviescoates

                              @girish said in PDF to Text/RTF fails:

                              Yeah, I have never got the conversion to work.

                              So I guess this shouldn't be marked as solved.

                              @girish said in PDF to Text/RTF fails:

                              I think it's probably an upstream bug.

                              If that's the case perhaps @froodle can help?

                              girishG Offline
                              girishG Offline
                              girish
                              Staff
                              wrote on last edited by
                              #23

                              @jdaviescoates You can also try if running soffice --infilter=writer_pdf_import --convert-to txt:Text --outdir /tmp/invoice Invoice.pdf works . For me, it doesn't produce anything even on my laptop.

                              jdaviescoatesJ 1 Reply Last reply
                              0
                              • girishG girish has marked this topic as unsolved on
                              • girishG girish

                                @jdaviescoates You can also try if running soffice --infilter=writer_pdf_import --convert-to txt:Text --outdir /tmp/invoice Invoice.pdf works . For me, it doesn't produce anything even on my laptop.

                                jdaviescoatesJ Offline
                                jdaviescoatesJ Offline
                                jdaviescoates
                                wrote on last edited by
                                #24

                                @girish said in PDF to Text/RTF fails:

                                @jdaviescoates You can also try if running soffice --infilter=writer_pdf_import --convert-to txt:Text --outdir /tmp/invoice Invoice.pdf works . For me, it doesn't produce anything even on my laptop.

                                When I try that on my laptop I just get:

                                Warning: failed to launch javaldx - java may not function correctly
                                

                                I use Cloudron with Gandi & Hetzner

                                girishG 1 Reply Last reply
                                0
                                • jdaviescoatesJ jdaviescoates

                                  @girish said in PDF to Text/RTF fails:

                                  @jdaviescoates You can also try if running soffice --infilter=writer_pdf_import --convert-to txt:Text --outdir /tmp/invoice Invoice.pdf works . For me, it doesn't produce anything even on my laptop.

                                  When I try that on my laptop I just get:

                                  Warning: failed to launch javaldx - java may not function correctly
                                  
                                  girishG Offline
                                  girishG Offline
                                  girish
                                  Staff
                                  wrote on last edited by
                                  #25

                                  @jdaviescoates said in PDF to Text/RTF fails:

                                  Warning: failed to launch javaldx - java may not function correctly

                                  I made this error go away by installing a whole bunch of packages. Some openoffice java support etc. I don't recall which ones now.

                                  1 Reply Last reply
                                  2
                                  • girishG girish

                                    Yeah, I have never got the conversion to work. I think it's probably an upstream bug.

                                    F Offline
                                    F Offline
                                    froodle
                                    wrote on last edited by froodle
                                    #26

                                    @girish this step has no OCR if that's what you're wanting, you would need to run OCR step first
                                    In that usecase this would only carry over the image file which txt wouldn't support
                                    However I can try debug this to see if I can reproduce if you are on about a pdf containing actual text
                                    Could very likely be issue on stirling pdf side

                                    jdaviescoatesJ 1 Reply Last reply
                                    1
                                    • F froodle

                                      @girish this step has no OCR if that's what you're wanting, you would need to run OCR step first
                                      In that usecase this would only carry over the image file which txt wouldn't support
                                      However I can try debug this to see if I can reproduce if you are on about a pdf containing actual text
                                      Could very likely be issue on stirling pdf side

                                      jdaviescoatesJ Offline
                                      jdaviescoatesJ Offline
                                      jdaviescoates
                                      wrote on last edited by
                                      #27

                                      @froodle said in PDF to Text/RTF fails:

                                      However I can try debug this to see if I can reproduce if you are on about a pdf containing actual text
                                      Could very likely be issue on stirling pdf side

                                      I've tried numerous PDFs with actual text and all of them failed just resulting in a blank text file.

                                      I use Cloudron with Gandi & Hetzner

                                      F 1 Reply Last reply
                                      1
                                      • jdaviescoatesJ jdaviescoates

                                        @froodle said in PDF to Text/RTF fails:

                                        However I can try debug this to see if I can reproduce if you are on about a pdf containing actual text
                                        Could very likely be issue on stirling pdf side

                                        I've tried numerous PDFs with actual text and all of them failed just resulting in a blank text file.

                                        F Offline
                                        F Offline
                                        froodle
                                        wrote on last edited by
                                        #28

                                        @jdaviescoates confirmed txt has issue I'll be disabling that feature and add a fix to backlog

                                        But rtf option of that page works fine for me (not in cloudron)

                                        1 Reply Last reply
                                        3
                                        • micmcM Offline
                                          micmcM Offline
                                          micmc
                                          wrote on last edited by
                                          #29

                                          Okay, on a positive note this app saved much time today and it worked perfectly well! 🙂

                                          Had to fax a 5 pages doc through a virtual fax app I use (since we have no more phone landline for years). The 5 pages were scanned in 5 different jpg images but the virtual fax needed one single file, jpg or pdf, with the 5 pages inside.

                                          Went to my Stirling PDF install; YES it can be done. I chose "Images to PDF" module, added the files and created a perfect PDF with the 5 pages in it, no error, ready to send through virtual fax. Stunning!

                                          Ignorance is not an excuse anymore!
                                          https://AutomateKit.com

                                          1 Reply Last reply
                                          6
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • Bookmarks
                                          • Search