Skip to Content
0
Former Member
Feb 24, 2009 at 04:36 PM

pdfSource is null, how to find out when pdf is rendered completly

31 Views

Hi guys,

I need the rendered pdf as a Stream, but I have no clue how to find out when the pdf has finished rendering, so that I can get the pdfSource.

I have the following scenario:

- button click opens a new IE window which will call a WD application

- application window will read all relevant data by delegation an action from default plug to the component controller

- the view embedded in the window contains only the interactiveForm

so far, this works fine

- but when I try to get the pdfSource now it is always null. I think this happens because the pdf is not rendered completly when I try to get the pdfSource.

So how to find out when rendering has finished and pdfSource is filled correctly?

Some more info:

- InteractiveForm is bound to a context Element from with type binary

- there is no feedback from generated pdf - no user klicks, when it is generated, but is has to be shown anyway

- it is a large PDF, about 10 - 20 pages of data, so rendering may take some time

Thx in advance

Fabian