LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Include portion of existing PDF document in my vibration report


@Coryman wrote:

 

Can anybody help me get the front end of this task working?

All of the suggestions so far involve cutting and pasting while the document is still an adobe document.  That's not what I need.

All of the suggestions above is just convert PDF to PNG, then load and cut as you need, something like that:

Screenshot 2023-01-12 10.33.26.png

You must have ImageMagick with GhostScript installed, of course. Then you can play and adjust density and probably resample parameters to get suitable resolution. This will work if you need "hard copy" of the header without parsing any data.

 

0 Kudos
Message 11 of 12
(242 Views)


@Coryman wrote (paraphrasing😞

So, I'm not looking to

1) create a pdf document,

2) import it into LabVIEW as an image and

3) take the top 25% from it. 

4) The bottom 75% is created by my code from saved data files.


I would:

1) create a pdf document in LabVIEW (with a PDF library or in Word and then save as or print to PDF),

3) with 25% standard stuff created by my code,

4) and 75% created by my code from saved data files.

 

I've been involved in PDF creation for 20 years, at times knowing the spec pretty much by heard. This use case comes up frequently.

 

PDF files are simply not suitable as a template.

 

PDF Forms are more suitable for that, but you'd need to implement a lot of the PDF specification and PDF Forms specification on top of that.

 

Converting a PDF to PNG is terrible, as you'd go from vector graphics to raster graphics.

0 Kudos
Message 12 of 12
(230 Views)