Create your first automation in just a few minutes.Try Studio Web →
by Internal Labs
8
Activity
4.9k
@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!
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
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
@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"
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"
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.
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!
How do i use this? After Installing this package - I do not find any activities to be used after installation ?
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!
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.
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.
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?
Hi David,
The newest version, which is compatible with the Studio 2022.10+, should fix that date.
Thank you
the content of the field "from:" ist missing. also date/time would be essential. could you please consider this in a future version.
Hi Thoesten,
The newest version, which is compatible with the Studio 2022.10+, should fix that field.
Thank you
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
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
Seconding Aditya's comment - this would be really useful if the timestamp were available.
Steve
Understood, it will be added
Thank you,
Catalin
Technical
Version
2.0.0.4Updated
April 4, 2023Works with
Studio: 22.10+
Certification
Silver Certified
Support
UiPath Community Support