bsorrentino / pdf-tools

Extract Markdown + Images from PDF
MIT License
42 stars 5 forks source link

bug fix displaying same image multiple times in markdown #7

Closed hubschne closed 8 months ago

hubschne commented 1 year ago

Hello again,

I ran into a bug and wanted to ask if you could fix it.

Unfortunately, images that are displayed on multiple slides only appear on the first instance in the markdown file for me. Here is an Example_Presentation.pdf and the generated markdown file (the same image is displayed in the pdf slides on the last two slides, but in markdown it is only shown on the first instance slide). I am using node v20.2.0 and your current pdf-tool version v1.1.0. When I run the command pdftools p2md, I get the following output:

{ pageseparator: '---' }

folder Example_Presentation doesn't exist, try to create
WARN: file Example_Presentation/Example_Presentation.fonts.json doesn't exists!
**image name g_d0_img_p3_3 not found!**
monospace or code font doesn't exists!
monospace or code font doesn't exists!
monospace or code font doesn't exists!
monospace or code font doesn't exists!

Thanks a lot in advance!

bsorrentino commented 1 year ago

Hi @hubschne thanks for feedback

I'll try to figure out how to solve it 😉

bsorrentino commented 8 months ago

solved by release 1.2.0