Skip to main content
Participant
January 11, 2019
Answered

Not able to print a PDF on Citrix using Adobe DC JavaScript

  • January 11, 2019
  • 2 replies
  • 546 views

I am trying to print a PDF file on citrix . While printing, it looks for .xdp file only at C:\users\user123\AppData\Local\Temp. Is there a way to make Adobe DC JavaScript to look for .xdp file at different location. I am using below code to print

var pp = oDoc.getPrintParams();

             oDoc.print(                                            {                                                        

printParams: pp,                                      

    }                              );

I am asking this question because I am not able to create .xdp file  on citrix machine at this location (C:\users\user123\AppData\Local\Temp) because its user specific folder location. I am using below code to create .xdp file           

   oDoc.exportXFAData                              (                                            {

                                                           cPath: sPath,                                                         

                                                             bXDP: true,                                                      

                                                aPackets: ["datasets"]                                     

      }                              );

If I set

sPath=C:\users\user123\AppData\Local\Temp\DocData.xdp, everything works perfectly fine and print() works successfully. Please advise.Early response will be urgently solicited.

This topic has been closed for replies.
Correct answer arvindm5433005

I was able to resolve it by dynamically getting username

2 replies

arvindm5433005AuthorCorrect answer
Participant
January 11, 2019

I was able to resolve it by dynamically getting username

Legend
January 11, 2019

I don't understand the "looks for XDP" part of this. What looks for an XDP? And, is this an XFA form?