-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
"Could not determine PDF size" #2350
Comments
Please put the PDF somewhere and link to it so we can have a look. +++ Shaun Jackman [Aug 06 15 12:36 ]:
|
I noticed this in Text.Pandoc.ImageSize:
which accounts for what you're seeing. Just need to write +++ Shaun Jackman [Aug 06 15 13:19 ]:
|
For now I've converted the PDF to PNG. brew install imagemagick
convert -units PixelsPerInch -density 600 fig.pdf fig.png |
Hi, just wanted to follow-up on this. I'm having the same symptom as in #2381 -- markdown-included PDFs render fine in PDF output, but docx output shows "Read-error". Since it's been a few years since any comments on this thread I just wanted to see if there are any alternative recommendations at this point, or if it's still just pending "code for extracting image size from the PDF". |
This issue was actually fixed by eeafb3f @nsheff It's not possible to include PDFs in docx files. |
It is possible though: Word for Mac can display PDF figures in docx produced by pandoc (2.2.1), albeit the size (or at least the aspect ratio) appears wrong. Word for Windows doesn't display those figures. Attempting to output to ODT produces this warning ([WARNING] Could not determine image size for '...pdf': could not determine PDF size). |
The bad news is that Word for both Mac and Windows convert the PDF on insert into EMF. The attached is made with Word for Mac 16.15. |
Ah, so it's not actually embedding the PDF. I guess image conversion is currently out of scope for pandoc... |
I'm rendering Markdown to DOCX, and I'm seeing the error
could not determine PDF size
. Both Mac OS and ImageMagick report that the PDF size is 522 x 504 pt (7.25 x 7 in). I can send you the PDF, if it's helpful. @github issues unfortunately don't allow uploading PDF.The text was updated successfully, but these errors were encountered: