Uipath Marketplace

はじめてのオートメーションをわずか数分で作成できます。Studio Web を試す

Save Email as PDF File

Save Email as PDF File

作成者: Internal Labs

Star

8

アクティビティ

ダウンロード数

4.9k

Arkaprava Basak
9 days 前に投稿

Hi,

Recently I was rerunning the same project using this package once again.

But am seeing that all the pdfs generated from the emails are containing only the From, To, CC, BCC, Sent On, Received, Subject, and the content section is completely blank.

The emails are containing tabular data which needs to be saved in PDF format.

The issue is happening in my machine, while working as expected in another colleagues machine.

Please assist if there is anything that can be done to fix this.

Regards,

Arkaprava

Catalin Tolea
3 months 前に投稿

@Arkaprava Basak - the current activity does not allow to change the layout, it will only extract the content in landscape mode.

We will take your suggestion into consideration for the next version of the activity.

Thank you!

Arkaprava Basak
3 months 前に投稿

Hello,

I am trying to use this package for an assignment, and the email that I want to convert to PDF contains a table with atleast 11 to 12 columns.

The activity is wonderful in terms of accuracy of the email content being saved.

I have a question though:

This activity saves the PDF in Portrait mode which causes a lot of text to get wrapped.

Is it possible to save the PDF in landscape mode? or better in a single PDF page, and maybe without having Page breaks?

Kindly advise.

Regards,

Arkaprava

Arkaprava Basak
3 months 前に投稿

Hello,

I am trying to use this package for an assignment, and the email that I want to convert to PDF contains a table with atleast 11 to 12 columns.

The activity is wonderful in terms of accuracy of the email content being saved.

I have a question though:

This activity saves the PDF in Portrait mode which causes a lot of text to get wrapped.

Is it possible to save the PDF in landscape mode? or better in a single PDF page, and maybe without having Page breaks?

Kindly advise.

Regards,

Arkaprava

Catalin Tolea
4 months 前に投稿

@Rajneesh Kumar - you should place only the folder name in EmailFilePath, and the file name (without the folder) in the EmailFileName and PdfFilePath

please make sure you do have the folder available and the permissions are ok.

Ex:

EmailFileName - "ProcessCompletionDispatcher.eml"

EmailFilePath - "D:\MyFolder"

PdfFilePath - "ProcessCompletionDispatcher.eml"

Rajneesh Kumar
4 months 前に投稿

Hi Catelin,

when I run this activity, it throws error -

"Read saved email to PDF: Directory name incorrect (Parameter 'D:\ProcessCompletionDispatcher.eml')"

When I pass the data in the fields -

EmailFileName - "ProcessCompletionDispatcher"

EmailFilePath - "D:\ProcessCompletionDispatcher.eml"

PdfFilePath - "D:\ProcessCompletionDispatcher.eml"

test test
3 years 前に投稿

Hi Catelin,

Every time I run this activity, it throws following error.

---

Read saved email to PDF: File name incorrect

---

Is this known bug?

I tried different file name with string type however the issue still persists.

it would be appreciated if you could share any sugestion.

Catalin Tolea
2 years ago 前に投稿

Hi test  :o)

Please make sure you provide the full name of the file (with the extension and all, for example myEmailFile.msg) as a separate parameter, and the folder as another one (ex: D:\myEmailsFolder\NewOnes). It should be able to read the content. If not, can you please provide the parameters values?

Thank you!

Parag Jakhariya
3 years 前に投稿

How do i use this? After Installing this package -  I do not find any activities to be used after installation ?

Catalin Tolea
2 years ago 前に投稿

Hi Parag, 

You need to install the proper version of the activity, based on your Studio version. If you have an onlder version of Studio, please make sure you install the 1.0.1 version of the package. If you are using the newest Studio (22.10 or above), please install the 2.0.0.4 version.

Thank you!

Mina Mina
3 years 前に投稿

Hi,

Im getting the following error when using this activity to convert an .eml file to PDF:

System.UnauthorizedAccessException: Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 80070005 Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)). at UiPathTeam.MailActivities.ReadSavedEmailToPDF.SaveAsPDF(String iniFilePath, String pdfFilePath) at UiPathTeam.MailActivities.ReadSavedEmailToPDF.Execute(CodeActivityContext context) at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager) at System.Activities.ActivityInstance.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager) at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)

Im running an unattended robot on Windows Server 2019 with Office 365 (Outlook and MS Word avaiable)

I have ensured the correct permissions have been set after following multiple articles about this error.

e.g. http://woshub.com/dcom-event-10016-fix-app-specific-permission/

Doesnt seem to have made any difference.

Catalin Tolea
2 years ago 前に投稿

Hi Mina,

Unfortunately, the issue is from the permisions that your robot has, for accessing the mail file or the folder where is stored. Please include the robot account in the group that has access to that file/folder, or make the folder with general access for everyone. Please keep in mind that you also need to create some files, so the permisions must allow that as well.

David Mowry
4 years 前に投稿

Thank you for this activity!  It's very useful!   It looks like the Received on is being parsed incorrectly on the PDF.  All of my PDF files that the activity creates show "Received: 1899/12/30 00:00:00".  Can the parsing be updated?

Catalin Tolea
2 years ago 前に投稿

Hi David,

The newest version, which is compatible with the Studio 2022.10+, should fix that date.

Thank you

Thorsten Zimmer
4 years 前に投稿

the content of the field "from:" ist missing. also date/time would be essential. could you please consider this in a future version.

Catalin Tolea
2 years ago 前に投稿

Hi Thoesten,

The newest version, which is compatible with the Studio 2022.10+, should fix that field.

Thank you

Benjamin Kern
4 years 前に投稿

Hello Catalin

Unfortunately I have problems with German umlauts (öäü...) which are not always converted cleanly. Especially then the rest of the text is cut off (ausfüllen -> ausfC).

Could it be that the PDF converter has problems with utf-8, especially with formatted text (e.g. italic)?

Thanks Beni

Catalin Tolea
4 years ago 前に投稿

Hello Benjamin,

The activity does a double translation from email body content to html, and from html to pdf.

For the format, I use the default for 

Document.ExportAsFixedFormat

(

DestFile.FullName,

Microsoft.Office.Interop.Word.WdExportFormat.wdExportFormatPDF

);

which has the "**useISO19005_1**" as default (false).

Please see more info here: https://docs.microsoft.com/en-us/dotnet/api/microsoft.office.tools.word.documentbase.exportasfixedformat?view=vsto-2017

Thank you,

Catalin

公開者

Internal Labs

公開者ページを表示

ライセンス契約とプライバシー条項

ライセンス契約

プライバシー条項

技術情報

バージョン

2.0.0.4

更新日

2023年4月4日

対応製品

Studio: 22.10+

認定

シルバー 認定済み

サポート

UiPath コミュニティ サポート