Welcome Guest Search | Active Topics | Sign In | Register

Pdf Attachements Options
Marcus Braun
Posted: Friday, January 30, 2015 10:09:17 AM
Rank: Newbie
Groups: Member

Joined: 1/30/2015
Posts: 7
Hi,

I am evaluating eo.pdf for integration in our asp.net system. I create a pdf document from html. That works fine. However, I also want to attach various files (images, docs, strange other files). The problem is, when I create a new PdfAttachement and add it into the doc.Attachements, the pdf has its portfolio view activated.

Is it possible to just attach a file (like the paperclip attach file function in adobe acrobat) and not have the whole document "converted" to portfolio view?

Thanks!
Marcus
eo_support
Posted: Friday, January 30, 2015 11:48:27 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,196
Hi,

I believe a PDF file is automatically treated as a portfolio as soon as you have attachment. However you can use PdfDocument.Portfolio.InitialView property to specify which initial view to use:

http://www.essentialobjects.com/doc/4/eo.pdf.pdfportfolio.initialview.aspx

If you do not want the file list to be shown, you can set the initial view to "Hidden".

Thanks!
Marcus Braun
Posted: Friday, January 30, 2015 6:22:16 PM
Rank: Newbie
Groups: Member

Joined: 1/30/2015
Posts: 7
When I set the portfolio view to hidden, the document does not even open on Adobe Acrobat XI.

It opens, however, on Chrome and in Adobe Reader, but there are no attachements showing up (they are showing up if the document is opened in portfolio view).

When I set Portfolio View to "NotSet", it just starts in portfolio view.

That function seems to be a bit messed up. Probably a bug?
eo_support
Posted: Monday, February 2, 2015 11:02:04 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,196
Hi,

Thanks for the additional information. We have looked into this and it does appear to be a bug. "NotSet" should be the right option for your case. The correct behavior should be Adobe Reader shows a list of "Attachement" as a side panel (like the bookmark panel) and the panel is initially collapsed instead of hidden. We are fixing this and should be able to provide you a new build this week.

Thanks!
Marcus Braun
Posted: Tuesday, February 3, 2015 3:15:17 AM
Rank: Newbie
Groups: Member

Joined: 1/30/2015
Posts: 7
Thanks! Could you post a short reply in this thread, then I know when to update to the new version.

Best,
Marcus
eo_support
Posted: Tuesday, February 3, 2015 9:03:23 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,196
Yes. We will do that.
eo_support
Posted: Wednesday, February 4, 2015 10:59:01 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,196
Hi,

This is just to let you know that we have posted a new build that should fix this problem. You can download the new build from our download page.

With this build if you just add Attachment but does not set Portfolio.InitialView (thus leaving it to the default "NotSet" value), Adobe Viewer will show a list of attachments as a side panel. EO.Pdf.dll version is 6.0.30.2 in this build.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.