Attachment Pane

PDF-XChange Viewer SDK for Developer's
(ActiveX and Simple DLL Versions)

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

docu-track99
User
Posts: 518
Joined: Thu Dec 06, 2007 8:13 pm

Attachment Pane

Post by docu-track99 »

Hello,

We're in the process of implementing your nice Attachment Pane into our product and I'd like to know if there's a way to disable the ability to open attached pdfs in the current viewer control (so that they don't open at all if the name in the Attachment Pane List is clicked on), or if there is a way to change the behaviour from opening in the current viewer control for an attached PDF to launching the associated application (like all other attachment types do).

Thanks
User avatar
Ivan - Tracker Software
Site Admin
Posts: 3586
Joined: Thu Jul 08, 2004 10:36 pm

Re: Attachment Pane

Post by Ivan - Tracker Software »

No, I'm afraid there is no way to that. PDF files are deliberately opened inside the same viewer.
PDF-XChange Co Ltd. (Project Director)

When attaching files to any message - please ensure they are archived and posted as a .ZIP, .RAR or .7z format - or they will not be posted - thanks.
docu-track99
User
Posts: 518
Joined: Thu Dec 06, 2007 8:13 pm

Re: Attachment Pane

Post by docu-track99 »

Is there a way to get the list of attachment names?
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2445
Joined: Thu Jun 30, 2005 4:11 pm

Re: Attachment Pane

Post by Vasyl - PDF-XChange »

Hi, docu-track99.
Is there a way to get the list of attachment names?
Look to [Reference/Named Items/Objects/Documents/<Item>] section in help file.
methods: GetAttachmentsCount, GetAttachmentName

HTH
PDF-XChange Co. LTD (Project Developer)

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
docu-track99
User
Posts: 518
Joined: Thu Dec 06, 2007 8:13 pm

Re: Attachment Pane

Post by docu-track99 »

To kind of return back to the original post:

Do you have any intention of marking the attachments read only before launching them in their associated app like Adobe does?
Or do you plan on adding an OnEvent (or already have) that notifies that the control is opening an attachment?
Possibly with a way to stop that attachment from continuing it's open operation?

The reason I ask is because right now attachments can be modified and saved as if they will be saved back into the original PDF, even going so far as to keep the saved changes if the attachment is re-opened during the same session, instead of being clear that an attachment that is opened won't be saved unless the user re-attaches the document.

Thanks
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19885
Joined: Mon Jan 12, 2009 8:07 am

Re: Attachment Pane

Post by Stefan - PDF-XChange »

Hello docu-track99,

I've passed your latest question to Vasyl and the other guys in our dev team, and we will reply here as soon as possible.

Best,
Stefan
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2445
Joined: Thu Jun 30, 2005 4:11 pm

Re: Attachment Pane

Post by Vasyl - PDF-XChange »

Hello docu-track99,
Do you have any intention of marking the attachments read only before launching them in their associated app like Adobe does?
Or do you plan on adding an OnEvent (or already have) that notifies that the control is opening an attachment?
Possibly with a way to stop that attachment from continuing it's open operation?
No, its impossible currently but we will add the following event in the next build(#200):

Code: Select all

eventhandler OnEvent(type, name,...)
{
     if ((type == PXCVA_OnNamedNotify) AND (name == "Notifications.BeforeOpenAttachment"))
     {
           pdfViewer.SetProperty("Notifications.BeforeOpenAttachment.Cancel", "true", 0);
           // if attachment is is a pdf the make it readonly
           int isPDF = 0;
           pdfViewer.GetProperty("Notifications.BeforeOpenAttachment.IsPDF", out isPDF, 0);
           if (isPDF != 0) 
                pdfViewer.GetProperty("Notifications.BeforeOpenAttachment.MakeReadOnly", "true", 0);
     }
}
Best
Regards.
PDF-XChange Co. LTD (Project Developer)

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19885
Joined: Mon Jan 12, 2009 8:07 am

Re: Attachment Pane

Post by Stefan - PDF-XChange »

Hello docu-track99,

This one also got a ticket:
#1313: Add new event "Notifications.BeforeOpenAttachment"
and the new event is planned to be added in build 200 as well.

Best,
Stefan
docu-track99
User
Posts: 518
Joined: Thu Dec 06, 2007 8:13 pm

Re: Attachment Pane

Post by docu-track99 »

Hello,

Any idea on the timing of the 200 build, we are trying to decide if we should wait for it for our next major update or go with the 199 version and put in workarounds for the attachment issues?

Thanks.
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19885
Joined: Mon Jan 12, 2009 8:07 am

Re: Attachment Pane

Post by Stefan - PDF-XChange »

Hello docu-track99,

No specific date yet I am afraid, so please go with the workarounds for now.

Best,
Stefan
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19885
Joined: Mon Jan 12, 2009 8:07 am

Re: Attachment Pane

Post by Stefan - PDF-XChange »

Hi docu-track99,

I got a notification that this problem is now resolved, and that we are finalizing build 200 which should be ready around the middle of the month.

Best,
Stefan