PDF Expert attaching wrong file

Discussion in 'iPad Apps' started by eddoria, Nov 16, 2015.

  1. eddoria

    eddoria
    Expand Collapse
    iPF Novice

    Joined:
    Nov 16, 2015
    Messages:
    11
    Thanks Received:
    0
    I have created an Adobe form for ordering using Adobe Acrobat XI. The form is working well on the PC and in PDF Expert except for the mail to button.

    I created a command button to mailto a hard coded address, attach the form and populate subject and body.

    Everything is working except for the attachment.

    The process is:

    I open up a form in PDF Expert. I create an order and save as in PDF Expert to the documents folder.
    I have two tabs open now. One is the original file and the other is my saved file.
    Whilst on the newly saved file, I click on the Email form. This is using generic javascript code to email a form.
    The email is created, the To:, subject and body is correct. However the attachment is actually the original form.

    To get the correct attachment I have to either close out of the file or move from one tab to another. When I reopen or jump back to the file it attaches the correct file.

    Does anyone know what causes this behaviour? It is like there is a cache of the file name until you move out of the file. It is not ideal to move off it so I would love to work out why this is happening.

    Regards

    Vera
     
  2. twerppoet

    twerppoet
    Expand Collapse
    iPad Legend II

    Joined:
    Jan 8, 2011
    Messages:
    20,349
    Thanks Received:
    5,943
    Sounds like a glitch between whatever extension you are using for the Javascript command and PDF Expert. Since you can't edit/change the behavior of PDF Expert, about all you can do is try tweaking your Javascript to see if you can get different results.

    I kind of duplicated your workflow with a form I created in PDF Office and using the Workflow app. I was able to follow the steps you outlined (copy a form, edit that form, use my workflow to automatically send an email with that attachment from the open tab of that document). Each time PDF Expert gave me a choice I chose to send/copy the original document (not flatten it), if that makes any difference.

    All three times I got the form and content I meant to send.

    Of course this is not conclusive, but it suggests the problem may lay (or at least be corrected) in the script/app you are using to send the file.

    That's all I can think of. Good luck.
     
  3. eddoria

    eddoria
    Expand Collapse
    iPF Novice

    Joined:
    Nov 16, 2015
    Messages:
    11
    Thanks Received:
    0
    Thanks for your response. I do get the option of the type to send and I do flatten.

    Are you able to provide the code you used? My javascript is very limited and I have learnt on the job creating the form.

    Would be greatly appreciated.

    Regards

    Vera

     
  4. twerppoet

    twerppoet
    Expand Collapse
    iPad Legend II

    Joined:
    Jan 8, 2011
    Messages:
    20,349
    Thanks Received:
    5,943
    Workflow doesn't use javascript (at least where you can see it). Instead you have a bunch of actions that you can drag into an execution order. Some have options you can set in the action, some don't. Some pass information, some act on it, etc. If you can handle even basic javascript programming you'll get the hand of Workflow quickly. It's kind of like building a block diagram of your script, except this block diagram is the script.

    The workflow I used to do this is too simple to bother diagramming. It just used the Send Email block. It takes whatever input you give the workflow, creates an email with the address, subject and content you've specified, then sends it. You can either let it pull up and populate a normal email dialog, then you tap Send, or you can have it automatically send.

    If you do it automatically you need to authenticate your email address and password in Workflow. This wasn't much fun (since all but one of my email accounts needs 2-step verification) but I got it to work.

    I'll try my workflow again with a flattened copy and see if it makes a difference, but I rather doubt it will.
     
  5. eddoria

    eddoria
    Expand Collapse
    iPF Novice

    Joined:
    Nov 16, 2015
    Messages:
    11
    Thanks Received:
    0
    Thanks for the response. I use workflow with SharePoint but not sure if it is the same as you mean.
     
  6. twerppoet

    twerppoet
    Expand Collapse
    iPad Legend II

    Joined:
    Jan 8, 2011
    Messages:
    20,349
    Thanks Received:
    5,943
    The app's name is Workflow. Its in the App Store. As far as I know there aren't any other apps with the same name.
     
  7. eddoria

    eddoria
    Expand Collapse
    iPF Novice

    Joined:
    Nov 16, 2015
    Messages:
    11
    Thanks Received:
    0
    Actually I don't get the message to flatten when I email. I get it when I click on button to Save As. When I click on my button Email Form, it just brings up the email message with all the variables correct but not the attachment. Very strange.

     
  8. twerppoet

    twerppoet
    Expand Collapse
    iPad Legend II

    Joined:
    Jan 8, 2011
    Messages:
    20,349
    Thanks Received:
    5,943
  9. eddoria

    eddoria
    Expand Collapse
    iPF Novice

    Joined:
    Nov 16, 2015
    Messages:
    11
    Thanks Received:
    0
    Thanks for the info. I will check it out. Very much appreciated.

    Vera

     
  10. twerppoet

    twerppoet
    Expand Collapse
    iPad Legend II

    Joined:
    Jan 8, 2011
    Messages:
    20,349
    Thanks Received:
    5,943
    Yes. I get the same thing, but I get the flatten option again when I use the Workflow action from the share sheet. Either one should do the job as far as the sent email is concerned.

    With my current workflow, I don't see the email before it is sent. I'm just sending them to myself and checking what I receive.
     

Share This Page