You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I am currently encountering the titled issue when using the convert_from_bytes function.
On my Mac, this happens specifically if I open up a fillable pdf and fill in with the preview function
Words that are filled in this way do not get converted.
If i use strict=True, and also when i test out with the pdftoppm -r 200 -jpeg sample_pdf.pdf out command on my terminal,
I get the following error message:
Syntax Error: Unknown font tag 'ArialMT'
Syntax Error: Unknown font tag 'ArialMT'
Syntax Error (69): No font in show
I have also gotten Unknown font tag 'Helvetica' on other files.
I have also verified that these fonts are present in my system using the fc-match ArialMT command, which returns me the respective matched font, in this case it'sVerdana.ttf: "Verdana" "Regular"
Interestingly, texts that are filled in via the textbox function remains converted as seen below:
This problem was first found on my Debian GNU/Linux 11 docker, and has the exact same behavior.
I have also already tried installing fonts like fonts-freefont-ttf fonts-liberation fonts-liberation2 ttf-mscorefonts-installer but the same issue persists.
P.S. Suspecting it might be an issue with editable fields, I also tried to flatten the pdf first using fillpdf before using convert_from_path, but the same issue remains.
Problem replicated on two systems:
OS: macOS Sonoma 14.2.1
pdf2img version: 1.17.0
pdftoppm/pdftotext version: 24.03.0
OS: Debian GNU/Linux 11
Poppler version: 22.11.0
Poppler-data version: 0.4.10
Thanks in advance!
The text was updated successfully, but these errors were encountered:
Hi, I am currently encountering the titled issue when using the
convert_from_bytes
function.On my Mac, this happens specifically if I open up a fillable pdf and fill in with the preview function
![Screenshot 2024-04-08 at 20 58 08](https://private-user-images.githubusercontent.com/54024886/320490025-275c2dba-d887-44bf-a37e-63d1575198fc.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU5NjU0NDMsIm5iZiI6MTcyNTk2NTE0MywicGF0aCI6Ii81NDAyNDg4Ni8zMjA0OTAwMjUtMjc1YzJkYmEtZDg4Ny00NGJmLWEzN2UtNjNkMTU3NTE5OGZjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTEwVDEwNDU0M1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTBiMmQ4OTYxMWMyNTQ5YzRmOWZkNjU5YTkzY2UwM2I2Yjk2YzcyODg5Yjc5YTRlMDJkYmE2ODhlYzViODIxYzQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.QjVrpNjb6a7s5BK7whywf40QnioIFWCA315lmcldXdU)
Words that are filled in this way do not get converted.
If i use
strict=True
, and also when i test out with thepdftoppm -r 200 -jpeg sample_pdf.pdf out
command on my terminal,I get the following error message:
I have also gotten
Unknown font tag 'Helvetica'
on other files.I have also verified that these fonts are present in my system using the
fc-match ArialMT
command, which returns me the respective matched font, in this case it'sVerdana.ttf: "Verdana" "Regular"
Interestingly, texts that are filled in via the textbox function remains converted as seen below:
![Screenshot 2024-04-08 at 21 03 48](https://private-user-images.githubusercontent.com/54024886/320491633-7c4cfeeb-2485-4397-8cba-42871401474c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU5NjU0NDMsIm5iZiI6MTcyNTk2NTE0MywicGF0aCI6Ii81NDAyNDg4Ni8zMjA0OTE2MzMtN2M0Y2ZlZWItMjQ4NS00Mzk3LThjYmEtNDI4NzE0MDE0NzRjLnBuZz9YLUFtei1BbGdvcml0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jc0ZmZiOTNjZmExMDU3NWM0MWJmZDc2NjImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.yuf-ZiN8IRwxrIw6ve0SjUlH8gGtVXGypb2G72tWVvo)
This problem was first found on my Debian GNU/Linux 11 docker, and has the exact same behavior.
I have also already tried installing fonts like
fonts-freefont-ttf fonts-liberation fonts-liberation2 ttf-mscorefonts-installer
but the same issue persists.P.S. Suspecting it might be an issue with editable fields, I also tried to flatten the pdf first using
fillpdf
before usingconvert_from_path
, but the same issue remains.Problem replicated on two systems:
OS: macOS Sonoma 14.2.1
pdf2img version: 1.17.0
pdftoppm/pdftotext version: 24.03.0
OS: Debian GNU/Linux 11
Poppler version: 22.11.0
Poppler-data version: 0.4.10
Thanks in advance!
The text was updated successfully, but these errors were encountered: