Auto Page creation and PDF Printing - Forum

Forum Navigation
You need to log in to create posts and topics.

Auto Page creation and PDF Printing

Hi,

I am in the process of creating a bingo card generator and my initial conumdrum is how to create auto generated pages based upon the number of cards required.

I have one page containing 4 bingo cards but I am not sure how to generate extra pages based upon the number bingo cards that I require.

Lastly is it possible to print pages as one continuous PDF?

If anyone could offer a pointer I would be really grateful.

TIA

Mark

 

@mark-waples

If I understood correctly...

Math "[NumberCards]/[NumberCardsPage]" "-1" "[Result]"
Math "Trunc([NumberCards]/[NumberCardsPage])" "-1" "[Trunc]"
If "[Result]" "=" "[Trunc]"
SetVar "[NumberPages]" "[Trunc]"
Else
SetVar "[NumberPages]" "[Trunc]+1"
EndIf

 

Quote from mishem on November 26, 2024, 3:37 pm

@mark-waples

If I understood correctly...

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
Math "[NumberCards]/[NumberCardsPage]" "-1" "[Result]"
Math "Trunc([NumberCards]/[NumberCardsPage])" "-1" "[Trunc]"
If "[Result]" "=" "[Trunc]"
SetVar "[NumberPages]" "[Trunc]"
Else
SetVar "[NumberPages]" "[Trunc]+1"
EndIf
Math "[NumberCards]/[NumberCardsPage]" "-1" "[Result]" Math "Trunc([NumberCards]/[NumberCardsPage])" "-1" "[Trunc]" If "[Result]" "=" "[Trunc]" SetVar "[NumberPages]" "[Trunc]" Else SetVar "[NumberPages]" "[Trunc]+1" EndIf
Math "[NumberCards]/[NumberCardsPage]" "-1" "[Result]"
Math "Trunc([NumberCards]/[NumberCardsPage])" "-1" "[Trunc]"
If "[Result]" "=" "[Trunc]"
SetVar "[NumberPages]" "[Trunc]"
Else
SetVar "[NumberPages]" "[Trunc]+1"
EndIf

 

Hi,

I am not sure I follow your logic.

I cannot see any method within NeoWin of generating the actual physical pages required.

Say I have 4 cards per A4 Page and I want to generate 30 pages of random tickets I cannot see a way of doing that apart from physically creating the actual 30 pages and allocating a random field for each bingo square.

I have attached a single ticket but in reality there would be 4 tickets per page.

If I did it the manul way that's a heap load of variables and a lot of work.

TIA

Mark

Uploaded files:
  • You need to login to have access to uploads.

You can simulate as many pages as you want on one page. Just fill in the variables.

Maybe I don't understand the task.

You can generate some kind of base of certain numbers for each page in advance, and then simply fill in the variables with numbers from the base.

And then write somewhere on the page (if necessary) page1, page2, etc. When pseudo-navigating or printing, fill in the table belonging to a certain page.

Why do you need many pages if the contents of the page are the same, except for the variables.

@mark-waples

Is this necessary?

Uploaded files:
  • You need to login to have access to uploads.

Hi Mishem,

Thank you for your effort - one thing to say I am using text instead of numbers so that won't work in it's current state.

Regards,

Mark

Check this: https://visualneo.com/forum/topic/recurso-html-to-pdf-jpg-clipboard-live-view-ejemplos-html-codigo-fuente-basado-en-wk-y-chrome