简体   繁体   English

在Android上为Google云打印创建PDF

[英]Creating a PDF for Google Cloud Print on Android

I'm trying to allow my users to print a simple string from their phones when they request. 我正在尝试允许我的用户在他们要求时从他们的电话中打印一个简单的字符串。 I've found Google Cloud Print and that seems like the way to go. 我已经找到了Google云打印,这似乎是一种方法。 However, converting this simple string to a PDF seems to be more complicated. 但是,将此简单字符串转换为PDF似乎更加复杂。

Are there any simple libraries or ways to throw a string into a PDF file? 有没有简单的库或方法可以将字符串放入PDF文件? Or is there any easier to print a string to a printer? 还是有什么更容易将字符串打印到打印机的? Thanks for any help. 谢谢你的帮助。

I am not an Android developer but this should do the trick: Creating a simple document in Java using itext ! 我不是Android开发人员,但这应该可以解决问题: 使用itext在Java中创建一个简单文档

About Google Cloud Print I would be a bit weary of using it. 关于Google云打印我会有点厌倦使用它。 In my experience it is a bit unstable and there is no support at Google at the moment (Just checked with Google Dev. Support team). 根据我的经验,它有点不稳定,Google目前没有任何支持(只需向Google Dev。Support团队咨询即可)。 We have decided to look for another way to do cloud printing because of this. 因此,我们决定寻找另一种进行云打印的方法。

Try droidtext library. 尝试droidtext库。 I have used this for creating pdf and have succeeded in printing the document. 我已经使用它创建了pdf,并成功打印了文档。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM