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 using shiva e.g. to convert a Markdown File to a PDF file.
The content of the PDF itself seems to be present, but when opened with any pdf viewer like adobe acrobat it displays only blank pages.
I can even reproduce it with a very simple txt file.
fn prepare_license_pdf_binary(license_file_bytes: Vec<u8>) {
let md_content = String::from_utf8(license_file_bytes).unwrap();
let input_bytes = Bytes::from(md_content);
let document = shiva::markdown::Transformer::parse(&input_bytes).unwrap();
let output_bytes = shiva::pdf::Transformer::generate(&document)
.unwrap()
.to_vec();
let mut file = File::create("payload/EULA.pdf").unwrap();
file.write_all(output_bytes.as_slice()).unwrap();
}
I attached the simple text input file and below the resulting PDF. Test.txt
Initially the small example test above didnt work either.
Then i noticed that the fonts folder was completely empty.
After deleting it and running the test it properly filled the fonts folder with all the fonts and also the PDF was fine again.
Not sure if I broke anything on my side that caused the fonts to not be downloaded anymore, but now it works again thanks!
Hi I am using shiva e.g. to convert a Markdown File to a PDF file.
The content of the PDF itself seems to be present, but when opened with any pdf viewer like adobe acrobat it displays only blank pages.
I can even reproduce it with a very simple txt file.
I attached the simple text input file and below the resulting PDF.
Test.txt
Test.pdf
Is this a known bug or am i doing something wrong?
The text was updated successfully, but these errors were encountered: