Passing variable into pdf document

I have created a pdf document that I want to share with my marketing team.  However, in the document I want the url to be dynamic and show that individual's url.   For example, if my domain is www.xyz123abc.com   In the pdf, I want to setup the url in the document as www.xyz123abc.com/REPSITE.  Then when the pdf is opened from each individual's site, we will pass the REPSITE variable into the pdf document.   If my marketing page is www.xyz123abc.com/jim.   When someone visits my website and opens the pdf, they will see www.xyz123abc.com/jim.  When my partner Bob's site is visited, the pdf will display www.xyz123abc.com/bob. 
So how can I dynamically pass variables from a website into the pdf?  

Don't know if there is a better way, but you could use the 'identity Object'. Just make sure that the Identity is set in the application preferences for each employee
var userName = identity.name
Edit: Sorry, after rereading your post, I don't think this is what you are asking for. Perhaps the 'HostContainer Object' wll allow you to do what you want?

Similar Messages

  • [IDCS3 WIN Insert Text Variables into a document

    Hi all.
    Please, I need insert a Text Variable into a document.
    This document is not open in a window (I am importing it).
    Using ITextVariableSuite is not possible.
    Any idea, suggestion, way of work,...?
    Thanks in advance.
    Best regards,
    Juanma.

    When you are posting on both the mac and windows forum it would be nice to say so.
    When you are asking questions about the development of plugins, please do so on the appropriate forum: http://www.adobeforums.com/webx/.ee6b334/
    We are all end users here.

  • Deferred Tasks - Passing Variables into Workflow

    Hi everyone
    I am experiencing difficulties with deferred tasks in IDM 8.1. I have managed to create a deferred task on a user, with the task name being ‘Generate Email’. I also passed in an attribute ‘id’, and these can be seen in the user view under waveset.properties.tasks.
      <Activity id='1' name='Add Deferred Task'>
                    <Action id='1' application='com.waveset.session.WorkflowServices'>
                        <Argument name='op' value='addDeferredTask'/>
                        <Argument name='type' value='User'/>
                        <Argument name='name'>
                            <ref>accountId</ref>
                        </Argument>
                        <Argument name='authorized' value='true'/>
                        <Argument name='subject'>
                            <s>Configurator</s>
                        </Argument>
                        <Argument name='task'>
                            <ref>taskToAdd</ref>
                        </Argument>
                        <Argument name='date'>
                            <new class='java.util.Date'/>
                        </Argument>
                        <Argument name='owner'>
                            <ref>WF_CASE_OWNER</ref>
                        </Argument>
                        <Argument name='taskDefinition'>
                            <new class='com.waveset.object.GenericObject'>
                                <map>
                                    <s>id</s>
                                    <ref>accountId</ref>
                                </map>
                            </new>
                        </Argument>
                    </Action>
                </Activity>I have set up a scheduler that correctly scans all the user objects for this workflow name, and the ‘Generate Email’ workflow is periodically run.
    The problem is when it gets to the Generate Email workflow, all the variables that were set when the deferred task was created are gone. Both <ref>id</ref> and <Variable name=’id’ input=’true’/> return null.
    Setting the following in the TaskSchedule object did not help, as the string value $(id) is passed into the workflow instead of the id itself. I cannot debug the TaskSchedule as the Netbeans IDE does not allow me to put in breakpoints on this file.
    <Variables>
        <Object>
          <Attribute name='id' value='$(id)'/>
        </Object>
      </Variables>My question is, how do I pass variables into a workflow via a deferred task?

    Hi,
    Here is an example that I found that may assist.
    <Activity name='setDefTask'>
         <Action application='com.waveset.session.WorkflowServices'>
           <Argument name='op' value='addDeferredTask'/>
           <Argument name='name' value='$(user)'/>
           <Argument name='task' value='$(taskType)'/>
           <Argument name='date' value='$(date)'/>
           <Argument name='description' value='$(taskDescription)'/>
           <Argument name='taskDefinition'>
              <Object>
                  <Attribute name='Arg1' value='value1'/>
                  <Attribute name='Arg2' value='value2'/>
                  <Attribute name='Arg3' value='value3'/>
              </Object>
           </Argument>
         </Action>
         <Transition to='end'/>
    </Activity>Hope it helps

  • How to pass variables into an alert

    Hi,
    I have set up an alert control step in my BPM, and completed all the required config to see the alert is created in my alert inbox. However, I want to pass some parameters into the alert message, such as po number. Does anyone know how to do it? I already defined the variables in the alert category container.
    Your help is appreciated!
    Hart

    Hi Hart
    I don't know if my way is "recommended" but...:)
    1. don't define container variable in alert def
    2. select "dynamic text" in your alert category
    (if you select this you'll be able to pass text from  "alert message" to the alert)
    now it should work
    passing variables into the long text
    of the alert message works for me just great 
    Hope it will for you to:)
    Kind Regards,
    Michal Krawczyk
    https://www.sdn.sap.com/sdn/weblogs.sdn?blog=/pub/u/34500 [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken]

  • How to embed audio clips into pdf document

    Hello I have a two-hour lecture I've transcribed. There are about 20 paragraphs. I want to embed the audio of the lecture into the pdf document so that when the reader clicks on a paragraph or on a button/control near the paragraph the audio for that particular paragraph starts up. An ideal version of this would be in pdf format and would allow the reader to click anywhere in the pdf and have the audio start from that point. I've never embedded audio before. I also have InDesign, Lightroom and Photoshop and can use them to embed audio before exporting to pdf.

    The exact process will depend on the version of Acrobat you have. In AA7, I just selected TOOLS>Advanced Editing>Sound Tool and added a sound file to the document. There were options for AA5 and AA6 compatibility as well as for embedding the sound file in the PDF.
    When you select the sound file, it asks if you want to play the file or accept the file as trusted for future requests. The file then played just fine. When I added the link, I was given a box to use to surround the area of interest on the page. You can set the border color and such (like make it invisible, though that might confuse folks).
    I am not sure what more you want. It is possible to add audio to open when you open the page also as well as set timing for the page. That would provide a way for the person to essentially have a lecture presented on your system without having to intervene. For the playing of the pages and timing, you may ahve to have the file open in full-screen, not sure.

  • Embedding of fonts into PDF document

    Hello people!
    I need to create a PDF document that has text in different fonts(Arial Black, Courier New, Lucida Sans etc.) and languages(English, German, Russian etc.).
    What is the best way to do this? How can I embed a font into a PDF document?
    I am reading a PDF Reference documantation, but I have not found a good example of font embedding...
    I would be thankful for an example or link to documentation or any other information that will help me to solve this problem.

    >I have not found any free library for creating PDF files so I'm writing my own..
    I would like to recommend that, rather than spending weeks or months
    on getting fonts to embed (this is HARD) you look harder at the
    available library. There are now dozens, and some are free, some are
    even open source. Quality varies, of course.
    http://www.planetpdf.com/ has a very big list of PDF tools, including
    developer tools.
    If you want to continue, realise that at points in this task you will
    hit things which suddenly seem to make the job ten times harder than
    before. Embedding fonts is one. Far Eastern fonts ten times harder
    still.
    > (The only library I found(for C++) was PDFLib, but it is not free)
    Do a fair comparison of your months of coding time versus licensing
    time.
    >Adobe PDF Library is not free too(As I understand it)
    Indeed not. From what we understand licensing is by negotation,
    royalty based and never less than tens of thousands of dollars.
    Frankly, too, it's not an ideal library for PDF creation.
    >
    >Yes, you are right! But almost every PDF doc is coded... How can I decode it to watch its contents?
    Write a decoder. You are sure to need one as part of debugging your
    own code at some point.
    > Is there an example of font embedding in the documentation?
    No, but it's just an extra FontFile, FontFile2 and/or FontFile3 key in
    the FontDescriptor: not very interesting in PDF terms.
    The key part is that you have to read and understand the font file
    formats as well as the PDF format, because in most cases you have to
    parse and may have to rewrite the font data. So if you want to embed
    TrueType fonts, now is the time to read the TrueType font
    specification (at least in outline, down to the level of the
    individual tables: you can ignore the stuff about outlines and
    rendering).
    Aandi Inston

  • BEx reports to be converted into PDF documents.

    Hi All,
    We have BEx WAD applications that invoke multiple queries and bring back data in a report like format. The reports contain a number of different fonts, page number information, graphical charts and table structued data. These reports are made available in the portal as iViews. Is it possible to convert these reports into PDF format (for printing) from the portal whilst retaining the formatting of the data with their fonts and graphics?? The report in the PDF must look exactly like it does in the iView.
    Thanks
    Kunal.

    Hi Edwin and Sunil,
    Thank very much for the prompt responses. Edwin, the HowTo document shows how to do the process manually by copying the URL of the web template. The users of the portal will not or rather SHOULD NOT be doing this. This has to be an automatic function...the user clicks a link in the portal which says something like "Print in PDF format" and then adobe reader automatically launches and they simply click 'Print'.
    Sunil,
    what did you mean by give a command option of exporting the report to pdf format? Is this something within WAD itself? Can you point me to somewhere which will show me how to do this?
    Thanks alot.

  • Pass variable into getURL

    I need to know how to pass a variable into getURL.
    Is it possible to use a param name in the html with a value
    of a URL (google.com) and pass that into the flash... and then in
    the actionscript replace the link with a var that calls the param?
    hope that makes sense.
    Thanks

    All you need to know here?:
    http://www.adobe.com/devnet/flash/articles/google_search.html

  • Pass variable into xMII applet???

    Is it possible to pass a javascript variable into the xMII applet?

    I guess what I asking is could I place a variable that I created in the head of the html file and then call for it in the applet.
    The variable is called in the Applet name below.
    For Example:
    <html>
    <head>
    <script>
            var TEST = alert("")
    </script>
    </head>
    <body>
    <tr>
    <td>
                                       <applet name="TEST" codebase="/Illuminator/Classes" code="iGrid" archive="illum8.zip" width="775" height="350" mayscript>
                                       <param name="DisplayTemplate" value="/Production/gridQA_Moistures">
                                       <param name="QueryTemplate" value="/Production/qryQA_Moistures">
                                       <param name="UpdateEvent" value="Grid_Updated">
                                       <param name="Param.1" value="%">
                                       <param name="Param.2" value="%">
                                       <param name="Param.3" value="%">
                                       <param name="Param.4" value="%">
                                       </applet>
    </td>
    </tr>
    </body>
    </html>

  • Embedding Truetype fonts into PDF Document

    Hi all,
    I have a question for you :
    I have a class in VB6 to make my PDF documents,
    with this class i have the possibility to enter text of
    Type 1 and text of Truetype fonts in the PDF Document,
    by the specifications of the font:
    i.e.:
    to be able to enter text in Regular Times New Roman, I must to provide these specifications :
    an array with the widths of all the characters, precisely :
    Array(250, 333, 408, 500, 500, 833, 778, 180, 333, 333, 500, 564, 250, 333, 250, 278, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 278, 278, 564, 564, 564, 444, 921, 722, 667, 667, 722, 611, 556, 722, 722, 333, 389, 722, 611, 889, 722, 722, 556, 722, 667, 556, 611, 722, 722, 944, 722, 722, 611, 333, 278, 333, 469, 500, _
                         333, 444, 500, 444, 500, 444, 333, 500, 500, 278, 278, 500, 278, 778, 500, 500, 500, 500, 333, 389, 278, 500, 500, 722, 500, 500, 444, 480, 200, 480, 541, 778, 500, 778, 333, 500, 444, 1000, 500, 500, 333, 1000, 556, 333, 889, 778, 611, 778, 778, 333, 333, 444, 444, 350, 500, 1000, 333, 980, 389, 333, 722, 778, 444, 722, _
                         250, 333, 500, 500, 500, 500, 200, 500, 333, 760, 276, 500, 564, 333, 760, 500, 400, 549, 300, 300, 333, 576, 453, 250, 333, 300, 310, 500, 750, 750, 750, 444, 722, 722, 722, 722, 722, 722, 889, 667, 611, 611, 611, 611, 333, 333, 333, 333, 722, 722, 722, 722, 722, 722, 722, 564, 722, 722, 722, 722, 722, 722, 556, 500, _
                         444, 444, 444, 444, 444, 444, 667, 444, 444, 444, 444, 444, 278, 278, 278, 278, 500, 500, 500, 500, 500, 500, 500, 549, 500, 500, 500, 500, 500, 500, 500, 500)
    And some parameters :
    /Flags 34
    /FontBBox [-250 -216 1200 1000]
    /MissingWidth 333
    /StemV 73
    /StemH 73
    /ItalicAngle 0
    /CapHeight 891
    /XHeight 446
    /Ascent 891
    /Descent -216
    /Leading 149
    /MaxWidth 1000
    /AvgWidth 401
    The question : Where I can find these specifications for other truetype fonts, like Tahoma, MS Sans Serif ecc..?
    thanks in advance for any replies!

    Thank you for replication,
    could you show me the name of API that I should use ?
    thanks in advance for any replies!

  • Pass Variables into AS3 through Query String?

    Man! I've been searching ferociously and can't seem to find a solution that works for me. I am trying to pass variables via query string on a PHP page to Flash, and then have the swf add movie clips to the stage depending on the information it receives.
    Here is what the PHP outputs:
    swfobject.embedSWF("flash/detailScore.swf?a=0-0&b=0-0&c=30-54&d=30-20&e=42-18", ...
    And here is my AS3 code:
    function loaderInfoSh(e:Event):void{
    var myQueryStrings=this.loaderInfo.parameters;
    a = myQueryStrings.a;
    b = myQueryStrings.b;
      c = myQueryStrings.c;
    d = myQueryStrings.d;
    e = myQueryStrings.e;
    addTheResults(a,1);
    addTheResults(b,2);
    addTheResults(c,3);
    addTheResults(d,4);
    addTheResults(e,5);
    this.loaderInfo.addEventListener(Event.COMPLETE, loaderInfoSh);
    The addTheResults function takes the coordinates, adds a MC instance to the stage and positions it accordingly.
    var colorMCArray:Array = new Array();
    function addTheResults(val,colnum:Number){
    if(val == null){val = "52-46";} // so I can test it locally
    var daColor:String;
    switch (colnum){
    case 1:
    daColor = "f3951c";
    break;
    case 2:
    daColor = "74b47d";
    break;
    case 3:
    daColor = "436494";
    break;
    case 4:
    daColor = "9b74ac";
    break;
    case 5:
    daColor = "b43d44";
    break;
    var dash:int = val.indexOf("-");
    var lateral = val.slice(0,dash);
    var vertical = val.slice(dash+1);
    lateral --;
    vertical --;
    // adding the MC instance
    var comm:tileB = new tileB();
    comm.name = "comm"+colnum;
    addChild(comm);
    colorMCArray[colnum] = comm;
    //Change the color
    var colorTransform:ColorTransform = colorMCArray[colnum].transform.colorTransform;
    var thiscolor = "0x"+daColor;
    colorTransform.color = thiscolor;
    colorMCArray[colnum].transform.colorTransform = colorTransform;
    colorMCArray[colnum].x = 5;
    colorMCArray[colnum].y = 536;
    colorMCArray[colnum].x += (lateral * 9);
    colorMCArray[colnum].y += (vertical * 9)*-1;
    colorMCArray[colnum].addEventListener(MouseEvent.MOUSE_OVER, btnro);
    colorMCArray[colnum].addEventListener(MouseEvent.MOUSE_OUT, btnrout);
    I don't know what I'm doing wrong here.

    Was this the "e" in the code below you were pertaining to as the culprit? "e" is not a keyword. It's just the shortcut for the word "event" for the variable name of type Event which is the Event object that triggered the call of function loaderInfoSh. In your code you assigned e = myQueryString.e which should have given you a type mismatch error.
    function loaderInfoSh(e:Event):void{
    var myQueryStrings=this.loaderInfo.parameters;
    a = myQueryStrings.a;
    b = myQueryStrings.b;
      c = myQueryStrings.c;
    d = myQueryStrings.d;
    e = myQueryStrings.e;
    addTheResults(a,1);
    addTheResults(b,2);
    addTheResults(c,3);
    addTheResults(d,4);
    addTheResults(e,5);
    this.loaderInfo.addEventListener(Event.COMPLETE, loaderInfoSh);

  • Passing variables into CVI from TestStand.

    Is there a different way to send variables into CVI from TestStand other than the input buffer? Parsing that string is annoying and bulky. Isn't there an easier way?

    Hi,
    Here is a short cut to another example which will use the StationGlobals -
    http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=313&HOID=506500000008000000301F0000&UCATEGORY_0=_8_&UCATEGORY_S=0
    There are loads of other examples either as part of the examples provided by TestStand installation or in the Resource Library under TestStand on the NI website
    Good Luck
    Ray Farmer
    Regards
    Ray Farmer

  • Trouble passing variable into package

    I am having an issue reading a variable in a script task that I'm passing in from a windows service. I should be able to pass the param in from .NET and load it into one of my package vars right? The windows service is a file watcher service.
    Windows Service code
                        Package pkg;
                        Application app;
                        DTSExecResult pkgResults;
                        Variables vars;
                        app = new Application();
                        pkg = app.LoadPackage(pkgLocation, null);d because I log it to a log file.
                        vars = pkg.Variables;
                        vars["User::FileName"].Value = sFileName.ToString();
                        pkgResults = pkg.Execute(null, vars, null, null, null);
    The sFileName variable in the service is populated because I write it to a log file.
    In the package I list the FileName variable as read/write. Have checked the spelling.
    package code snippet:
          public void Main()
          //get file and path info
          string sFileName = Dts.Variables["User::FileName"].Value.ToString();
    the package fires but the variable is empty and I log an exception to the sysssislog:
    System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentOutOfRangeException: Index and length must refer to a location within the string.  Parameter name: length    
    at System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy)     at ST_5a4733488a6149abb109d633296e2c38.csproj.ScriptMain.Main()     --- End of inner exception stack trace ---    
    at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)     at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)    
    at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)     at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object
    target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)     at Microsoft.SqlServer.Dts.Tasks.ScriptTask.VSTATaskScriptingEngine.ExecuteScript()
    I cannot find what the issue is. In the package I log to a text file the value of FileName variable and as expected it is empty.
    I appreciate your help wit

    The scripting task which is designed to retrieve the file name from the package var User::FileName is listed in the scripting tasks read/write variables and it is a package level variable. Is that what you mean by "expects" Arthur? If so then yes. But is
    there a property setting on the script task that has to be set?
    I could use the config file but the file name changes daily with a date stamp suffix. I could also just sweep the directory when the file watcher executes the package but that all seems so sloppy considering that I should be able to pass the filename in
    as a variable.
    Thanks for talking through this with me. I appreciate it.

  • Problem with passing variable into subroutine

    Applescript newbie stumped again...
    for some reason when call the subroutine below from my code, I get an error message on the bolded variable.
    Error is:
    Can't make "test" into type integer.
    I am calling the subroutine like this:
    createFolder(folderCreationPath, appFolderName)
    And am passing in two variables that I have concatenated folder name & path name.
    on createFolder(folderLocation, folderName)
    tell application "Finder"
    if (the folder folderName of folderLocation exists) then
    display dialog folderName & " already exists."
    else
    make new folder at folderLocation with properties {name:folderName}
    end if
    end tell
    end createFolder
    When I display the variables inside the subroutine, both appear to be strings.
    Any help would be appreciated.
    Thank you.

    If I knew how to upload a file to the forum I would do so...
    Copy & paste into script editor would reformat.
    Here's the full script:
    ---SubRoutines------------------------------------------------------------------ ------------------------------------------------------------------
    on createFolder(folderLocation, folderName)
    display dialog "FolderName: " & folderName & "
    Folder Location: " & folderLocation & "
    " & folderLocation & folderName
    tell application "Finder"
    if (the folder folderName of folder folderLocation exists) then
    display dialog folderName & " already exists."
    else
    make new folder at (folderLocation as alias) with properties {name:folderName}
    end if
    end tell
    end createFolder
    ---Main Code--------------------------------------------------------------------------- ------------------------------------------------------------
    set projectName to "Project " & the text returned of (display dialog "What is the name of your Project?" default answer "")
    set projectLocation to choose folder
    ---create root project folder
    createFolder(projectLocation, projectName)
    ---create subFolders
    --List of Folder names:
    set FolderMediaType to {"Project", "Media & Imports", "Exports"}
    set projectApplication to {"FCP", "Soundtrack", "LiveType", "Motion", "DVD Studio Pro", "Web Videos"}
    set projectLocation to projectLocation & projectName --Set's project location to include project folder
    repeat with iProjectApplication from 1 to count (projectApplication)
    set folderCreationPath to ((projectLocation as string) & ":") --set's folderCreation to include project folder
    set appFolderName to ((iProjectApplication as string) & "-" & (item iProjectApplication of projectApplication))
    createFolder(folderCreationPath, appFolderName)
    set folderCreationPath to projectLocation & ":" & appFolderName & ":"
    repeat with iFolderMediaType from 1 to count (FolderMediaType)
    set mediaFolderName to iFolderMediaType & "-" & (item iFolderMediaType of FolderMediaType)
    createFolder(folderCreationPath, mediaFolderName)
    end repeat
    end repeat

  • Embedding MS Accessibility controls into pdf document.

    I have a pdf form running fine in a server with Adobe Proffesional 8.0,  We need to update to Adobe Pro 9.0 or Adobe Pro 10.  The app is not performing well in those higer versions of Adobe Pro because we need to capture data from a pop up window to name an output file, but the data can no be scraped from the pop up window.  I heard that the problem can be circumvented by embedding MS Accessibility Controls into the form.  Can sombody please help me understand what is "embedding MS Accessibility Controls into a pdf form"?
    Thanks

    We have the pdf rendered in a JVM in an Intranet.  The pdf is displayed using Adobe Prod 8.0, when all the required data is captured from a phone interview, a button (click) triggers a WebService to execute and send a file to a Lenux Server. 

Maybe you are looking for