Closed AbdelrahmanWahdan closed 8 years ago
I have the same issue to @AbdelrahmanWahdan . I believed, this is correct for the run time html() function, but not to run the converted HTML file separately. I want to use run (convert) it only one time and so, is there any way to configure the image path as I want? Please!
@AbdelrahmanWahdan could you email me the pdf you're converting? I would like to test it in my device and also to check that this package is still working properly.
@Nyeinchanaung For the moment, this package can't do separate its images to another directory. But i will consider it. :+1:
@mgufrone thanks for your reply. I'd noted that's the issue of poppler.
Actually, I want the image's path in generated HTML page is refer to generated images., like img src="file001.png"
instead of img src="output/file/file001.png"
.
According to the package, I found the code to run command as
D:/poppler-0.40.0/bin/pdftohtml.exe -c -fmt png -zoom 1.5 file.pdf \output/56c9607130a00\file.html
and then the image path in HTML page is just like src="output/file/file_ind.html"
But when I try to run the command with absolute path like that,
C:/poppler-0.40.0/bin/pdftohtml.exe -c -fmt png -zoom 1.5 file.pdf C:/wamp/www/\pdf_to_html\output/56c9607130a00\file.html
it look good and the file path in generated HTML is like img src="file001.png"
.
I think that may be useful for @AbdelrahmanWahdan.
But I'm facing the new issue, poppler is not working well with landscape pdf . :'(
okay i will change the relative path to absolute one. I guess i'm gonna working on landscape pdf too. Thanks for the info
frame name="links" src="output/file/file_ind.html" frame name="contents" src="output/file/file-1.html"
Should be:
frame name="links" src="file_ind.html" frame name="contents" src="file-1.html"
img width="892" height="1262" src="output/file/file001.png" alt="background image"
Should be:
img width="892" height="1262" src="file001.png" alt="background imag
Because they exist in the SAME folder