Sherzod Posted August 5, 2021 Share Posted August 5, 2021 An open-source standards-friendly JavaScript utility for embedding PDF files into HTML documents. Demo: pdfobject.rar Sources: https://pdfobject.com/ https://pdfobject.com/#api https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf http://www.africau.edu/images/default/sample.pdf https://microsite.nintendo-europe.com/supermariomaker_artbook/SuperMarioMakerBooklet.pdf 4 Link to comment Share on other sites More sharing options...
andyhill Posted August 11, 2021 Share Posted August 11, 2021 Thanks Sherzod. I am looking for a JS solution to extract text from PDF files. I do not want to shell out to 3rd part solutions but stay within the UniGUI application and extract all text from PDF file using Javascript. Can you help ? Link to comment Share on other sites More sharing options...
Sherzod Posted August 20, 2021 Author Share Posted August 20, 2021 On 8/12/2021 at 2:46 AM, andyhill said: I am looking for a JS solution to extract text from PDF files. I do not want to shell out to 3rd part solutions but stay within the UniGUI application and extract all text from PDF file using Javascript. Can you help ? Hello, Please explain your case in more detail. Link to comment Share on other sites More sharing options...
andyhill Posted August 22, 2021 Share Posted August 22, 2021 Open PDF File Extract Text from PDF File (line by line) Save Text Hayri did help me and I am very grateful for his efforts, however, I would like the extracted text to be CRLF delimited (as shown in the PDF - not one continuous concatenated string where it is difficult to get one line from another [particularly when there is no structure to the text and we only have the PDF new line view to delineate]). Link to comment Share on other sites More sharing options...
fraxzi Posted September 20, 2021 Share Posted September 20, 2021 Hi @Sherzod, The file pdf created by "filePDF := UniServerModule.NewCacheFile('pdf', cFile,'');" show's nothing or blank but if created by "filePDF := UniServerModule.FilesFolder + 'temp\' + cFile + '.pdf';", the pdf shows.. I can't use NewCacheFile? Thanks, Frances Link to comment Share on other sites More sharing options...
fraxzi Posted September 20, 2021 Share Posted September 20, 2021 i got it! JSInterface.JSCallGlobal('PDFObject.embed', [filePDF, cTag, JSInterface.JSObject(['forceIframe', True, 'forcePDFJS', True, 'PDFJS_URL', '<urlFile>' ])]); Thanks Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now