Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

images treatment in html output of pdf2txt.py #1060

Open
fx99-D opened this issue Nov 11, 2024 · 0 comments
Open

images treatment in html output of pdf2txt.py #1060

fx99-D opened this issue Nov 11, 2024 · 0 comments

Comments

@fx99-D
Copy link

fx99-D commented Nov 11, 2024

Bug report

In pdf2txt.py with --output_type html --outfile xxx.htm --output-dir yyy
images are not treated correctly:

  1. images are not referenced correctly:
    instead of
    <img
    src="x12.bmp"
    it should be
    <img
    src="**yyy/**x12.bmp"

  2. images are not placed correctly since
    "position:absolute;" occurs twice,
    once in

<div
      style="position:absolute; border: figure 1px solid; writing-mode:False; **left:477px; top:108px; width:41px; height:41px;**"
    >
and once in 
<img
        src="Lauch2/x12.bmp"
        border="1"
        style="position:absolute; **left:477px; top:108px;**"
        width="41"
        height="41"
      />
taking "position:absolute;" out in <img  brings them to correct position.

As an example I used the output of https://www.chefkoch.de/rezepte/853241190796144/Lauchkuchen.html?utm_medium=qr_code&utm_source=chefkoch_web&utm_campaign=chefkoch_rds_print

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

No branches or pull requests

1 participant