How to trouble shooting Adobe PDF generation issue

130 阅读1分钟

In case you encounter Adobe PDF generation issue, you could follow the tip described below to find the root cause. This tip can also be used to get the performance data of your PDF rendering.

  1. set a breakpoint on method CL_FP_PDF_OBJECT~EXECUTE_INTERNAL. Render your PDF as usual. The breakpoint should be triggered.
  2. Change the variable _adstrace’s content to 4 in debugger.

If you don’t like to manually change it every time you debug, you can set an user parameter like below:

  1. Debug until you reach line 218. Click F6 to step over it.

Download the PDF into your local laptop:

Open the local PDF, click the attachment icon as below, then you can find all types of useful information there:

  1. the original form template
  2. the runtime performance trace file (trace.txt)
  3. the xml data file for the pdf (xfd.xml)
  4. detail information raised by ADS server during PDF render time (error.pdf)

要获取更多Jerry的原创文章,请关注公众号"汪子熙":