Jump to content

PDFObject


Sherzod
 Share

Recommended Posts

An open-source standards-friendly JavaScript utility for embedding PDF files into HTML documents.

image.thumb.png.fd439e74aa451cd8bf8be1f8e4ff8c67.png

image.thumb.png.3ac70290395fcd6901f72733d1b53453.png

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

 

  • Like 4
Link to comment
Share on other sites

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

  • 2 weeks later...
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

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

  • 4 weeks later...

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...