XDao7

Results 8 comments of XDao7

> ![custom-render](https://user-images.githubusercontent.com/17684779/159838223-b16909df-180d-40d4-9bf1-ea230fffbcd5.png) 我用pdfbox测试了你的这个文件,中文部分依然是无法输出的,另一个正常的发票pdf转图片后可以看到中文: [红米K40发票.pdf](https://github.com/TomRoush/PdfBox-Android/files/8338287/K40.pdf) > > pdfbox和pdfbox-android这两个库,都是只针对符合pdf标准的文件做了解析,对于不符合标准的文件,支持有限。其他的pdf阅读器,我知道的如Adobe Acrobat,针对不符合标准的文件也做了很多的额外的修复逻辑,所以可以经常看到,一些pdf在pdfbox中报错,Adobe Acrobat却能打开的现象。 > > pdfbox似乎目前没有针对不符合标准的文件做很多兼容的计划。pdfbox-android是pdfbox的迁移版本,似乎也没有这样的支持计划。 > > 如果你只是想将pdf转为图片的话,在Android端,我建议使用官方的android.graphics.pdf.PdfRenderer,支持API 21及以上,速度和兼容性都要比pdfbox-android好很多。我测试你这个文件可以在PdfRenderer中转图片后正常显示中文。 PdfBox-Android version: [e.g. 2.0.25.0] Android API version: [e.g. API 29] 我在上述环境下尝试打开了这条回复中提供的pdf文件,发票的电子章显示不正常,请问一下是我的代码哪里有问题还是说并不支持显示电子印章? ![Screenshot_20220811_173716](https://user-images.githubusercontent.com/50022005/184105674-d77d438c-90a6-4d7d-9a06-63c0701065e3.png)

> @lanjd @JessYanCoding 解决了吗,我现在也遇到了这个问题,弹框不适配 有试过把usePlatformDefaultWidth设置为false么: ``` Dialog( onDismissRequest = {}, properties = DialogProperties( usePlatformDefaultWidth = false ) ) {} ```

You can import the following files into the assets folder: - **katex.min.css** - **katex.min.js** - **auto-render.min.js** - **fonts** folder Then write a template Html and place it in the assets...

经过测试,是可以在compose当中正常使用的,下面是我目前封装的 ``` @Composable fun ThinkMapView( treeViewAdapter: TreeViewAdapter, treeViewLayoutManager: TreeLayoutManager, treeModel: TreeModel, modifier: Modifier, treeViewControlListener: TreeViewControlListener? = null, //请在外部保存此高阶函数提供的TreeViewEditor对象,用于对树形图做编辑 onEditorCreate: (TreeViewEditor) -> Unit = { _ -> } ) { val...

考虑到onEditorCreate: (TreeViewEditor) -> Unit = { _ -> }这种方式不太符合compose使用习惯,所以额外封装了一层ThinkMapEditor: ``` /** * TreeViewEditor当中方法很多,但是绝大部分没有具体实现 * 此类仅覆盖已经实现的方法 */ class ThinkMapEditor { private var editor: TreeViewEditor? = null fun setEditor(editor: TreeViewEditor) { this.editor...

你直接把代码clone下来,然后把library那个module打包成aar放你项目里面用

Is there something wrong with my usage? I didn’t find any documentation on how to introduce it in Android Studio.

After testing, this problem can be solved by specifying the socket.io-client-java version ``` implementation("io.socket:socket.io-client:2.1.0") { exclude(group = "org.json", module = "json") } ``` If do this, you can only receive...