Results 66 comments of nekosu

> `tracer.finish()` will give you a `Vec`. `TraceResults` was unused and I removed it now. I trace the text rendering into `TextState::draw_text`. If things work as I expected, the PdfString...

> Got it! ```rust TextEncoding::CID(Some(ref to_unicode)) => { match to_unicode.get(&cid) { Some(&(gid, ref unicode)) => (cid, gid, Some(unicode.clone())), None => (cid, None, None) } }, ``` This block deals with...

So I could just follow the previous process of draw_text function (check cid flag if need to split into two byte chunk or just expand byte) , and the string...

Then is it necessary to add a method to translate vec into String? It is quite hard to get familiar with this logic. I've try some other pdf-related crates, but...

![image](https://user-images.githubusercontent.com/26452623/192323135-f2b6d713-fe20-4849-8d02-4f9f7825a249.png) I've follow [trace.rs](https://github.com/pdf-rs/pdf_render/blob/master/render/examples/trace.rs) this script, but it seems that there's sth. wrong. FIrstly, the example doesn't contain line 13, which `p` has type PageRc while render_page want Page. (Maybe...

Thanks! I've finally parsed my pdf. Though the program panic for missing STANDARD_FONTS env, but I've figured out that it just want that path to fonts.json which contains the path...

I'm sorry, but after debugging, I've notice that RenderState::text function would just drop the text items that misses information for rendering (e.g. cannot find corresponding font to calculate size rect)....

![image](https://user-images.githubusercontent.com/26452623/192424216-fe0c40c9-56f1-4244-aa6a-a836b752dc13.png)

It's wierd. It seems that pdf_render loaded the required fonts, but cannot get any glyph from them. The program worked for some of pdf previously. It can load "AVUUDS+BWSongTi" "KHQECP+BWKaiTi",...

Yes, but I cannot get it (without patching source, as it is in RenderState.text_state, a private struct). I've tried to do font parsing myself, but finally I know that the...