我是靠谱客的博主 外向哈密瓜,最近开发中收集的这篇文章主要介绍android 生成pdf,使用PrintedPdfDocument和View.draw从Android生成PDF,觉得挺不错的,现在分享给大家,希望可以做个参考。

概述

我有这个布局,我想在屏幕上打印所有内容到PDF.

包括滚动视图中的所有内容.我稍后也会尝试使用IText这样做,但是现在我想看看我是否可以使用PrintedPdfDocument和View.draw来完成它.我所生成的PDF,但只有部分布局在PDF上可见.

这是布局:

xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"

android:layout_height="match_parent" android:paddingLeft="@dimen/activity_horizontal_margin"

android:paddingRight="@dimen/activity_horizontal_margin"

android:paddingTop="@dimen/activity_vertical_margin"

android:paddingBottom="@dimen/activity_vertical_margin" tools:context=".MainActivity"

android:id="@+id/relativeLayout">

android:layout_width="wrap_content"

android:layout_height="wrap_content"

android:text="Title"

android:id="@

最后

以上就是外向哈密瓜为你收集整理的android 生成pdf,使用PrintedPdfDocument和View.draw从Android生成PDF的全部内容,希望文章能够帮你解决android 生成pdf,使用PrintedPdfDocument和View.draw从Android生成PDF所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(68)

评论列表共有 0 条评论

立即
投稿
返回
顶部