Alpha

Results 61 comments of Alpha

If helpful to you, I determined text alignment issue appears to be related to nested `tspan` elements. Flattening the hierarchy resolved the issue for me. (Not particularly sure why the...

Yes, alignment referred to the title text. Adding the Times font did not change anything, best as I could tell. (I did add a symbolic font, which fixed the "symbol...

Traced down the font issue. Appears CSS styles did not propagate the `font-family` to the main text. Creating an explicit rule `renderOptions.css(".text { font-family: Times; }")` fixed that.

Likely related: https://github.com/Kozea/CairoSVG/issues/300

A different renderer I was also using had no support for symbol elements. Scripting a conversion of symbols into multiple path defs, one for each different transform used of the...

So, I am not dealing with the problems mentioned here anymore. (Up to you if you want to close this issue or not.)

I used this with `patch-package` previously: react-native-pdf+6.2.0.patch ```diff diff --git a/node_modules/react-native-pdf/android/src/main/java/org/wonday/pdf/PdfView.java b/node_modules/react-native-pdf/android/src/main/java/org/wonday/pdf/PdfView.java index 1c44ad3..c82d082 100644 --- a/node_modules/react-native-pdf/android/src/main/java/org/wonday/pdf/PdfView.java +++ b/node_modules/react-native-pdf/android/src/main/java/org/wonday/pdf/PdfView.java @@ -54,6 +54,7 @@ import java.lang.ClassCastException; import com.shockwave.pdfium.PdfDocument; import com.google.gson.Gson; import...

On Android, this library bundles its own pdfium binaries. If reduced size is a priority, you could try `react-native-pdf-light` (disclosure: I am the library's author). `react-native-pdf-light` uses pdf renderer APIs...

The wrapper dramatically reduced calls to the main `render()` function, which (depending on data, config, etc.) is heavy. If you do remove the wrapper, I recommend caching the `renderChildren()` call...

Unfortunately, it has been too long since I worked on this for me to recall if I: did not test that, tested but it did not work, or maybe just...