Attachment Pane
Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange
-
- User
- Posts: 518
- Joined: Thu Dec 06, 2007 8:13 pm
Attachment Pane
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
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
-
- Site Admin
- Posts: 3586
- Joined: Thu Jul 08, 2004 10:36 pm
Re: Attachment Pane
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.
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.
-
- User
- Posts: 518
- Joined: Thu Dec 06, 2007 8:13 pm
Re: Attachment Pane
Is there a way to get the list of attachment names?
-
- Site Admin
- Posts: 2445
- Joined: Thu Jun 30, 2005 4:11 pm
Re: Attachment Pane
Hi, docu-track99.
methods: GetAttachmentsCount, GetAttachmentName
HTH
Look to [Reference/Named Items/Objects/Documents/<Item>] section in help file.Is there a way to get the list of attachment names?
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.
Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
-
- User
- Posts: 518
- Joined: Thu Dec 06, 2007 8:13 pm
Re: Attachment Pane
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
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
-
- Site Admin
- Posts: 19885
- Joined: Mon Jan 12, 2009 8:07 am
Re: Attachment Pane
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
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
-
- Site Admin
- Posts: 2445
- Joined: Thu Jun 30, 2005 4:11 pm
Re: Attachment Pane
Hello docu-track99,
Best
Regards.
No, its impossible currently but we will add the following event in the next build(#200):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?
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);
}
}
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.
Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
-
- Site Admin
- Posts: 19885
- Joined: Mon Jan 12, 2009 8:07 am
Re: Attachment Pane
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
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
-
- User
- Posts: 518
- Joined: Thu Dec 06, 2007 8:13 pm
Re: Attachment Pane
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.
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.
-
- Site Admin
- Posts: 19885
- Joined: Mon Jan 12, 2009 8:07 am
Re: Attachment Pane
Hello docu-track99,
No specific date yet I am afraid, so please go with the workarounds for now.
Best,
Stefan
No specific date yet I am afraid, so please go with the workarounds for now.
Best,
Stefan
-
- Site Admin
- Posts: 19885
- Joined: Mon Jan 12, 2009 8:07 am
Re: Attachment Pane
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
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