1
Question about attachments (creating a PDF portfolio)
Question asked by Daniel Guerriero - 4/27/2021 at 8:36 AM
Answered
I'm using the attachments property to add a file using the following code:

Dim duattach As New Attachment
duattach.File = "e:\nada.pdf"
DocumentViewerControl.Attachments.Add(duattach)

And this is what I'm getting:


How can I change the "sidepanel.coverSheet" text to something else?
Also, is it possible to add an attachment as the cover sheet itself (so it will be shown as the main file) ?

4 Replies

Reply to Thread
0
Daniel Guerriero Replied
Also I noticed that the watermarks do not show when viewing the attachments.
0
Cem Alacayir Replied
Employee Post
Regarding "sidepanel.coverSheet" text , normally you should see "Cover Sheet"  text, either you have an outdated custom language file in App_GlobalResources\WebViewer\i18n  folder or your have an old version. Please see here for the latest language files and update to the latest Version 5.9.5 - April 18, 2021.

> Also I noticed that the watermarks do not show when viewing the attachments.

Yes, watermarks are only added to the main document but maybe we could include a setting to add them also to attachments.



0
Daniel Guerriero Replied
> Yes, watermarks are only added to the main document but maybe we could include a setting to add them also to attachments. 

That would be very useful, thanks. I also noticed that when I open any PDF portfolio file, not just the ones I'm generating via the attachments collection, the watermarks do not show either.
0
Cem Alacayir Replied
Employee Post Marked As Answer
FYI, as of DocumentUltimate Version 6.4.0 - April 20, 2022, nested attachments are now supported:
 
  • Added:Nested attachments are now supported for Email and Pdf formats.
    • Attachments will use the same PdfOutputOptions.Watermarks and PdfOutputOptions.FastWebViewEnabled properties
       from root container document for PDFs generated for attachments.
    • Some emails may contain extensionless attachments which are nested emails, these are "message/rfc822" attachments.
       Now .eml extension will be added to these attachments so that they can be converted and displayed in DocumentViewer.

Reply to Thread