LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Open PDF file using Exaprom iTextSharp

Hi,

 

The Exaprom pdf is a very useful toolkit, thank you very much for this contribution.

But I have difficulties to re-open a pdf file generated with Exaprom 2.0.

I just want to add new content to the same pdf file without just using concatenation (to avoid blank spaces).

 

I tried the tips here : http://forums.ni.com/t5/LabVIEW/Concatenate-PDF-files-with-Exaprom-iTextSharp/td-p/2049196/page/2

without success.

I also tried to create a file and fill it using a for loop, but this solution is not satisfying if there is an interruption of the loop (there is not a proper closing - which has to happen after the loop -  and so loss of the saved data).

 

Can you help me on this please ?

Thank you !

0 Kudos
Message 1 of 8
(4,921 Views)

What do you exactly want to do?


Could you give more details?


Could you post what you have done (LV2013)?

0 Kudos
Message 2 of 8
(4,889 Views)

I have done a simple example (screenshot) to show what I intend to.

 

In fact it is  a while loop with an event (or condition) loop inside.

I want to re-use the same created pdf. file to add new data.

This way, if I interrupt the loop I can still use the same file.

I wouldn't need to create a new one and concatenate the files or overwhite it and restart from the beggining...

 

Thanks

0 Kudos
Message 3 of 8
(4,870 Views)

The short answer is this is not possible, because this imply too much modifications to the library.

 

0 Kudos
Message 4 of 8
(4,855 Views)

Ah ok, what a shame !

 

But in the discussion with Hoovah you highlight an "Open PDFStamper" in "Append Header, Footer and Watermark.vi" in "Close PDF.vi.

Is it possible to try something with it ?

 

If there is really no solution I will use the concatenation.

 

Thanks.

0 Kudos
Message 5 of 8
(4,819 Views)

(you mispelled hooovahh)

 

And in that case it was just writing a footer or header, over top of an existing footer or header.  I think it would be far too complicated to be able to write new content, on the same page as existing content, if you actually not covering up the existing data, which it sounds like you do.

0 Kudos
Message 6 of 8
(4,814 Views)

The PDF Stamper is for writing over an existing PDF file, not at the end of a PDF file. 

 

We could import pages with PDFWriter, but "the major downside is that all interactive features of the imported page (annotations, bookmarks, fields, and so forth) are lost in the process". 

 

More thant that, the page is add like a template.  It is not possible to know where the text stops in the last page.  You will have no indication where to start to write the new information on the last page.

0 Kudos
Message 7 of 8
(4,808 Views)

(Sorry Hooovahh)

 

Ok I understand.

Thank you for your answers !

 

Nico

0 Kudos
Message 8 of 8
(4,789 Views)