5 Replies Latest reply on Jul 8, 2009 4:55 AM by pguerett

    RenderPDFForm - Attachments

    Johannes Lehninger Level 1

      Hi,

       

      I'm using the RenderPDFForm to merge a template with xml data. this service also provides the possibility to add attachments. Therefore I create a document map an pass it to the service.

       

      works fine. Just one point that needs to be resolved. The Render service injects a timestamp as description . (see Attachment of this post)

       

      how/where can I manually set this value?

       

      regards

        • 1. Re: RenderPDFForm - Attachments
          pguerett Level 6

          The attachments map is a map of document objects. How were the document objects created in the first place. Each document has attributes that describe the contents of the document. The ones you are interested in are prefixed by ws. I believe that the one you want is wsdescription.

           

          Paul

          • 2. Re: RenderPDFForm - Attachments
            Johannes Lehninger Level 1

            this is how the map looks like:

             

            as you can see the wsdescription tag is set, but after using renderpdfForm Service the description is displayed the way as I've explained.

            any ideas to solve this problem?

             

            <map>
              <entry>
                <string>Preise_VK_2009_EUR_3.pdf</string>
                <com.adobe.idp.Document serialization="custom">
                  <com.adobe.idp.Document>
                    <int>3</int>
                    <boolean>true</boolean>
                    <boolean>true</boolean>
                    <null/>
                    <string>127.0.0.1//10.0.11.15</string>
                    <null/>
                    <null/>
                    <com.adobe.idp.DocumentFileID>
                      <__fileName>session29036/../docm1246881620500/2ba35a3c7f7477866171ed3e9141d088</__fileNam e>
                    </com.adobe.idp.DocumentFileID>
                    <null/>
                    <null/>
                    <map>
                      <entry>
                        <string>wsattachtype</string>
                        <string>attachment</string>
                      </entry>
                      <entry>
                        <string>wsfilename</string>
                        <string>Preise_VK_2009_EUR_3.pdf</string>
                      </entry>
                      <entry>
                        <string>wsdescription</string>
                        <string>irgendwas</string>
                      </entry>

                      <entry>
                        <string>wscreatorid</string>
                        <string>4AA5E7DF-CA4D-55F8-4176-675B089C871B</string>
                      </entry>
                      <entry>
                        <string>basename</string>
                        <string>Preise_VK_2009_EUR_3.pdf</string>
                      </entry>
                      <entry>
                        <string>wsupdatedate</string>
                        <date>2009-07-07 09:52:48.77 CEST</date>
                      </entry>
                      <entry>
                        <string>file</string>
                        <string>Preise_VK_2009_EUR_3.pdf</string>
                      </entry>
                      <entry>
                        <string>wspermission</string>
                        <string>1</string>
                      </entry>
                      <entry>
                        <string>name</string>
                        <string>Preise_VK_2009_EUR_3.pdf</string>
                      </entry>
                      <entry>
                        <string>wscreatedate</string>
                        <date>2009-07-07 09:52:48.77 CEST</date>
                      </entry>
                    </map>
                    <string>adobe/idp/DocumentPullServant/adobejb_server1</string>
                    <long>208665</long>
                  </com.adobe.idp.Document>
                </com.adobe.idp.Document>
              </entry>
            </map>

            • 3. Re: RenderPDFForm - Attachments
              pguerett Level 6

              Sorry I was confused with what you were doing. I thought you were looking at the attachments on the task not in Reader/Acrobat. The attribute you want is "description" not "wsdescription".

               

              Paul

              • 4. Re: RenderPDFForm - Attachments
                Johannes Lehninger Level 1

                thx for the hint,

                 

                it works, but I the description looks now like "filename $fs_timestamp". (details in attached file)

                 

                It should look just like "filename"

                • 5. Re: RenderPDFForm - Attachments
                  pguerett Level 6

                  Sounds like a bug .......you should report that to support to get it fixed. In the meantime you could enter a description that is long enough to cause the $fs=timestamp to roll off of the visual display.

                   

                  Paul