Skip to content
This repository has been archived by the owner on Dec 9, 2018. It is now read-only.

Loss line, table border.How can I solve it? #33

Closed
commonwealth1 opened this issue Sep 28, 2012 · 8 comments
Closed

Loss line, table border.How can I solve it? #33

commonwealth1 opened this issue Sep 28, 2012 · 8 comments

Comments

@commonwealth1
Copy link

I have compile pdf2htmlex in centos6, it loss line, table border.How can I solve it?

pdf
http://pan.baidu.com/share/link?shareid=64909&uk=2502462965

html:
http://pan.baidu.com/share/link?shareid=64908&uk=2502462965
It must down html to local disk first.

when generator, I copy folder /tmp/pdf2htmlEX-iLPXAm to other my own folder. the folder contain image files.
for tiff, they are ok.
for png, all the size of them is 0KB.

Is't problem?

@commonwealth1
Copy link
Author

fontforge-20120731
poppler-0.20.4
libpng-1.2.49

@coolwanglu
Copy link
Owner

Cannot reproduce it.
Try pdftocario -png -l 1 xxx.pdf and see if you can get a png file with the content of the first page.

@commonwealth1
Copy link
Author

I have install poppler-0.20.4. but I cann't find command pdftocario.
Do I want to install some other zip file?

Thanks!

@commonwealth1
Copy link
Author

ŠOO[root@szpc1112 tmp]# ls /usr/local/bin
annotate fc-match gd2topng libpng12-config pdfseparate pngtogd2 xmllint
bdftogd fontforge gdcmpgif libpng-config pdftohtml rdjpgcom
cjpeg fontimage gdlib-config pdf2htmlEX pdftoppm sfddiff
djpeg fontlint gdparttopng pdfdetach pdftops webpng
fc-cache freetype-config gdtopng pdffonts pdftotext wrjpgcom
fc-cat gd2copypal giftogd2 pdfimages pdfunite xml2-config
fc-list gd2togif jpegtran pdfinfo pngtogd xmlcatalog

@coolwanglu
Copy link
Owner

Seems that you didn't compile poppler with cario enabled
Then please try pdftohtml -c -s -l 1 xxx.pdf, open the generated html
and see if there are proper images.

On Fri, Sep 28, 2012 at 4:46 PM, commonwealth1 notifications@github.comwrote:

ŠOO[root@szpc1112 tmp]# ls /usr/local/bin
annotate fc-match gd2topng libpng12-config pdfseparate pngtogd2 xmllint
bdftogd fontforge gdcmpgif libpng-config pdftohtml rdjpgcom
cjpeg fontimage gdlib-config pdf2htmlEX pdftoppm sfddiff
djpeg fontlint gdparttopng pdfdetach pdftops webpng
fc-cache freetype-config gdtopng pdffonts pdftotext wrjpgcom
fc-cat gd2copypal giftogd2 pdfimages pdfunite xml2-config
fc-list gd2togif jpegtran pdfinfo pngtogd xmlcatalog


Reply to this email directly or view it on GitHubhttps://github.com//issues/33#issuecomment-8968064.

@commonwealth1
Copy link
Author

[root@szpc1112 tmp]# pdftohtml -c -s -l 1 44406.pdf
Page-1
Internal Error: Support for this image type not compiled in

@coolwanglu
Copy link
Owner

OK, so that means your poppler was not compile with libpng.

So make sure you have installed the headers files of libpng, and try to
configure and build poppler again.

Then I guess both pdf2htmlEX and pdftohtml would work.

On Fri, Sep 28, 2012 at 7:37 PM, commonwealth1 notifications@github.comwrote:

[root@szpc1112 tmp]# pdftohtml -c -s -l 1 44406.pdf
Page-1
Internal Error: Support for this image type not compiled in


Reply to this email directly or view it on GitHubhttps://github.com//issues/33#issuecomment-8973880.

@commonwealth1
Copy link
Author

It work!

many,many Thank!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants