Jump to content

Create PDF from your application


taietel
 Share

Recommended Posts

I've tried to edit my post and the code between autoit code tags was all scrambled!

I've attached the script in the first post and link to the fonts zip file.

Link to comment
Share on other sites

Hi wakillon! And thanks for the feedback.

I know there are a lot! You can write more functions based on what's on the script, make form-based apps and output to pdf, daily reports etc. Use your imagination!  ;) 

This is just a bare-bone I've decided to share.

Link to comment
Share on other sites

I'm definately interested because evidently I'm going to have to start creating a variable letter creation program...

I don't even know where to start but it almost looks like this will give me the answer. ;)

010101000110100001101001011100110010000001101001011100110010000

001101101011110010010000001110011011010010110011100100001

My Android cat and mouse game
https://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek

We're gonna need another Timmy!

Link to comment
Share on other sites

wakillon, since you're the only one interested in this, PM if you want to receive updates of this activex. For now I'm occupied with relocation, but hopefully this does not last forever. ;)

M.I.

I'm not the only interested, it's because there are a lot of timid people on this forum ! Posted Image

And Number of downloads: 73, it's cool right !

AutoIt 3.3.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

Link to comment
Share on other sites

 Timid??? It's not the case! This can be solved!  ;)

I'm working in improving the dll and make the code more clean (I suck at that) and turn it into some kind of UDF.

Any suggestions are welcome! 

kaotkbliss, ask if anything is unclear!

M.I.

Edited by taietel
Link to comment
Share on other sites

I'm sure I will have a ton of questions as I begin my project. I need to wrap your code into a gui that will allow a user to merge a database with completely customizable text, page size, number of pages, images, etc. that will be used in creating pdfs.

So, I guess my first question, I see you have some of the more common page sizes available (A4, Legal, Letter, etc.) Could this be set up for a custom size?

010101000110100001101001011100110010000001101001011100110010000

001101101011110010010000001110011011010010110011100100001

My Android cat and mouse game
https://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek

We're gonna need another Timmy!

Link to comment
Share on other sites

kaotkbliss, see the first post. Sorry for the late answer! It's my turn to cook!  ;)

I've deleted the old version and attached a new one. See the third page (it has custom dimensions) of the generated pdf.

Link to comment
Share on other sites

Sweet. Now I need to start getting everything together. I'm sure I will have many many more as I attempt to tackle this project.

010101000110100001101001011100110010000001101001011100110010000

001101101011110010010000001110011011010010110011100100001

My Android cat and mouse game
https://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek

We're gonna need another Timmy!

Link to comment
Share on other sites

I've deleted the old version and attached a new one. See the third page (it has custom dimensions) of the generated pdf.

I wante to try your new version and i get an error...Posted Image

: ==> The requested action with this object has failed.:
.FormatPage = $FORMAT_A4
.FormatPage = $FORMAT_A4^ ERROR
->11:42:10 AutoIT3.exe ended.rc:1
+>11:42:11 AutoIt3Wrapper Finished
>Exit code: 1    Time: 1.528
Edited by wakillon

AutoIt 3.3.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

Link to comment
Share on other sites

wakillon, that's because I've changed it to allow custom pages. 

Change

.FormatPage = $FORMAT_A4

with

.FormatPage ($FORMAT_A4)

Look in the example, at the third page (it has different dimensions; the first two are A4).

M.I.

Link to comment
Share on other sites

wakillon, that's because I've changed it to allow custom pages.

Change

.FormatPage = $FORMAT_A4

with

.FormatPage ($FORMAT_A4)

Look in the example, at the third page (it has different dimensions; the first two are A4).

Could you update archive, because with archive script i get only 2 pages

and with the script link I get another error ...Posted Image

\createpdf\pdfAutoit.au3 (166) : ==> The requested action with this object has failed.:
.LoadAfm = @TempDir & "\Fonts"
.LoadAfm = @TempDir & "\Fonts"^ ERROR
->12:24:13 AutoIT3.exe ended.rc:1
+>12:24:14 AutoIt3Wrapper Finished

AutoIt 3.3.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

Link to comment
Share on other sites

wakillon, see the attachment in the first post (I've included all in the archive).

M.I.

Ah it's better, i see the 3 pages and the last with his big watermark , and no error ! Posted Image

How do you set the size of watermark ? i don't see parameters...

Thanks for all.

AutoIt 3.3.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

Link to comment
Share on other sites

Updated first post (see the screenshot of the first page). Now all the fonts are included in the script. 

wakillon, you can not change the watermark's parameters. Instead, you can replace it with a rotated, coloured etc text. 

M.I.

Link to comment
Share on other sites

Updated first post (see the screenshot of the first page). Now all the fonts are included in the script.

wakillon, you can not change the watermark's parameters. Instead, you can replace it with a rotated, coloured etc text.

M.I.

I'm unlucky, I download your last version ( with all embeded in the script ) and i get an error Posted Image

pdfAutoit.au3 (164) : ==> The requested action with this object has failed.:
.LoadAfm = @TempDir & "\Fonts"
.LoadAfm = @TempDir & "\Fonts"^ ERROR
->19:20:10 AutoIT3.exe ended.rc:1
+>19:20:11 AutoIt3Wrapper Finished

AutoIt 3.3.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

Link to comment
Share on other sites

Solved! My mistake. See the first post!

[EDIT] The problem was that I've modified the dll, but I forgot to change the old one in the script... Now it works well.

I'm working to include form elements (basic ones - inputbox, checkbox) , but this might take a while...

Edited by taietel
Link to comment
Share on other sites

Solved! My mistake. See the first post!

[EDIT] The problem was that I've modified the dll, but I forgot to change the old one in the script... Now it works well.

I'm working to include form elements (basic ones - inputbox, checkbox) , but this might take a while...

very unlucky...

pdfAutoit3\pdfAutoit.au3 (310) : ==> The requested action with this object has failed.:
.Cell ($text4, $mLeft, $mTop+335, $AreaW-$mLeft, 12, "")
.Cell ($text4, $mLeft, $mTop+335, $AreaW-$mLeft, 12, "")^ ERROR
->20:23:14 AutoIT3.exe ended.rc:1
+>20:23:15 AutoIt3Wrapper Finished

AutoIt 3.3.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...