生成临时PDF文件 [英] Generating Temporary PDF Files

查看:351
本文介绍了生成临时PDF文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨!

我想根据结果创建一个临时pdf文件,并允许用户选择保存还是丢弃该文件.

我知道如何创建pdf文件,但我想知道如何创建 临时pdf文件".

[在某些桌面应用程序上工作]

Hi!!

I wanted to create a temporary pdf file based on the results, and allow user with a choice to either save or discard the file.

I know how to create pdf files but I wanted to know how to create "temporary pdf file".

[Working on some desktop application]

推荐答案

您好,一种方法是将PDF文件生成到系统temp文件夹并询问用户保存或丢弃.

另一个选择是将PDF文件生成到文件夹(默认情况下在应用程序中指定,该应用程序具有读取/写入/删除访问权限),然后要求用户保存或丢弃.用户保存/丢弃文件后,从该位置删除文件.
Hi, one option is to generate the PDF file to the system temp folder and ask the user either to save or discard.

Another option is to generate the PDF file to a folder (specified in the application by default, which the app has read/write/delete access) and ask the user either to save or discard. Delete the file from that location after user saves / discards the file.


这篇关于生成临时PDF文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆