Solved

pdf2html

Posted on 2013-05-18
11
445 Views
Last Modified: 2013-05-20
Are there any open source pdf2html conversion softwares  which i can use preferabbly in Javascript or jquery or php..I need code that I can use in my site or locally on my server
0
Comment
Question by:Moizsaif123
  • 5
  • 5
11 Comments
 
LVL 42

Expert Comment

by:sedgwick
Comment Utility
0
 
LVL 21

Expert Comment

by:Haresh Nikumbh
Comment Utility
0
 
LVL 4

Author Comment

by:Moizsaif123
Comment Utility
where do i go, after downloading this i tried to run the index file from this path below from chrome, but nothing seems to appear


pdf.js-master\examples\helloworld


Im getting this error in console

>>XMLHttpRequest cannot load file:///C:/Users/Admin/Desktop/pdf.js-master/examples/helloworld/helloworld.pdf. Cross origin requests are only supported for HTTP.
0
 
LVL 42

Expert Comment

by:sedgwick
Comment Utility
U need to direct the pdf file via your website:
http://..../helloworld.pdf
0
 
LVL 4

Author Comment

by:Moizsaif123
Comment Utility
can you break it down for me, the link above, http://..../helloworld.pdf, this would generate a html page for me?

would there be index page like http://..../index.html/helloworld.pdf, because i dont get how would the js files from the plugin be  called if there is no index file specified..
0
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 42

Expert Comment

by:sedgwick
Comment Utility
0
 
LVL 42

Accepted Solution

by:
sedgwick earned 500 total points
Comment Utility
change extension to rar or zip and unzip the files into your web site directory.
navigate to test.html and see how the pdf is displayed.
0
 
LVL 4

Author Comment

by:Moizsaif123
Comment Utility
yea, that displayed the pdf file in test.html, Although when i viewsource it, i dont see the layout in html, i just get the canvas element, where are all the html objects from the page gone to..
0
 
LVL 42

Expert Comment

by:sedgwick
Comment Utility
when you view-srouce the page, click on hello.js and you'll see the canvas creation.
0
 
LVL 4

Author Comment

by:Moizsaif123
Comment Utility
Sure but where has the content gone like design pattern should be in a <p>tag or the image of the book should be shown in a <img tag contained within a span maybe, I would like to view tht HTML
0
 
LVL 4

Author Comment

by:Moizsaif123
Comment Utility
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
This article discusses four methods for overlaying images in a container on a web page
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now