First of all IDK if it's OK to post this topic here and if not I'm asking to move it to the right place.
Anyway I ask for help in the PDF UDF main thread but nobody has answer me yet and I really need help on this.
See the problem started when I upgraded Autoit to its new version you can see the thread in the following link
I am trying to find more information on generating PDF files from AutoIT and found the UDF topic
Also found some info on creating .FDF file and use PDFTK for merging, but i can't find info about a custom based layout.
What i trying to find out is, if it is possible to generate a variable layout. For an example i created a script which is based out 20 fields and every field can contain information. If one of those fields are not filled, it shouldn't be printed on the PDF either.
To make it more difficult, the PDF should contain a heading, the first 10 fields and then a horizontal line across the PDF and then a new heading and then show the last 10 fields.
But only the fields which are filled.
Is this possible?
I found a code in C++ for file format conversion from RTF to PDF with using Debenu QuickPDF.
I know how to use Debenu QuickPDF in AutoIt .
My question is about RTF part of this code:
HDC hdcNew = debenu->GetCanvasDC( RTFPRINTINGDOTSPERINCH * RTFPAGEWIDTHININCHES, RTFPRINTINGDOTSPERINCH * RTFPAGEHEIGHTININCHES); canvas = new TCanvas; canvas->Handle = hdcNew; RVReportHelper1->DrawPage( PageCounter, canvas, true, RTFPRINTINGDOTSPERINCH * RTFPAGEHEIGHTININCHES); // LastPageHeight);
First there is hdcNew declaration , and this is not the problem.
My problem is in converting the following code snippet, to AutoIt
canvas = new TCanvas; canvas->Handle = hdcNew; RVReportHelper1->DrawPage( PageCounter, canvas, true, RTFPRINTINGDOTSPERINCH * RTFPAGEHEIGHTININCHES); // LastPageHeight);
If you remember, I created RTFPrinter sometime ago. But it was some time ago , and created by trial and error, rather than in-depth analysis.
Also, it was just a modification of another script, not my own work from scratch.
So now I'm looking for help how to adapt this code snippet to AutoIt.
Any tips ?