如何在用户的机器中打开时更改pdf中的时间字段 [英] How to change time field in pdf while opening in user's machine

查看:108
本文介绍了如何在用户的机器中打开时更改pdf中的时间字段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要通过Outlook中的电子邮件附件发送pdf文件。 pdf中有与当地时间相关的字段,要求是在用户系统中打开pdf时,将根据用户的时区显示时间。我用c中的itext sharp创建了pdf



请帮帮我。

谢谢



我尝试过:



我需要通过Outlook中的电子邮件附件发送pdf文件。在pdf中有与当地时间相关的字段,并且要求是在用户系统中打开pdf时,将根据用户的时区显示时间。我用c中的itext sharp创建了pdf



请帮帮我。

谢谢

I need to send a pdf file via email attachment in Outlook. There is field in pdf related to local time and the requirement is when pdf is open in user's system then time will show according to user's time zone. I created pdf using itext sharp in c#

Please help me out this.
Thanks

What I have tried:

I need to send a pdf file via email attachment in Outlook. There is field in pdf related to local time and the requirement is when pdf is open in user's system then time will show according to user's time zone. I created pdf using itext sharp in c#

Please help me out this.
Thanks

推荐答案

你不能在他们的机器上执行此操作,因为大多数人根本不会安装iTextSharp库,只需使用UTC time,或使用他们的语言环境动态生成时间戳。



在大多数情况下,我建议使用HTML电子邮件,Outlook会尽最大努力确保进行更改以显示当前语言环境中的内容&mdash ;只要他们也使用Outlook;尽管如此,大多数当前的电子邮件提供商都提供此服务来查找和提取日历等的日期时间值。但是,需要修改PDF以更改该段落或块的值,这将需要您(r用户)有一个图书馆......等等。唯一的逻辑解决方案是在生成PDF之前实际使用它们的语言环境。



您可以要求用户输入他们的语言环境,或者发送UTC时间的电子邮件。用户将知道他们的日程安排的时间。
You cannot do that on their machine, as most of them won't have the iTextSharp library installed at all, to do so, just use "UTC time", or use their locales to generate the time stamp dynamically.

In most cases, I would recommend using an HTML email, Outlook will do maximum of its own to make sure that changes are made to show the content in current locale — provided they are also using Outlook; nonetheless, most of the current email providers provide this service to find out and extract date time values for calendars etc. However, PDF would require to be modified to change the value of that paragraph or chunk, which would then require you(r user) to have a library... So on and so forth. The only "logical" solution to this is to actually use their locales, before generating the PDFs.

You can ask the users to enter their locales, or send the emails with UTC time. Users will know what time it will be on their schedule.


请参阅 Adobe Acrobat 9 Pro:PDF表单:插入自动日期字段,UWEC [ ^ ]。


这篇关于如何在用户的机器中打开时更改pdf中的时间字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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