How to Review a PDF file

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
trags3
Posts: 432
Joined: Wed Apr 09, 2014 1:58 am

How to Review a PDF file

Post by trags3 » Fri Nov 20, 2015 1:43 am

Hi all. I have an app that generates a 1 page PDF file and then calls the email program to send the file to a client.
I would like to be able to review the file before I send it.
The only way I can think of is to build a browser within my app and open the PDF file with that.
2 questions.
1. Will this work?
2. Is there an easier way to accomplish this?

Thanks

Tom

quailcreek
Posts: 746
Joined: Sun Feb 04, 2007 11:01 pm

Re: How to Review a PDF file

Post by quailcreek » Fri Nov 20, 2015 3:06 am

I have an app where I do something similar. I first populate a scrolling field to preview the information then I populate a separate "print" stack where I do a " open printing to pdf". From there I can either print a hardcopy or email the PDF.
Tom
MacBook Pro OS Mojave 10.14

trags3
Posts: 432
Joined: Wed Apr 09, 2014 1:58 am

Re: How to Review a PDF file

Post by trags3 » Thu Jan 07, 2016 12:14 am

Ok i'm back to work here. I have made a sub stack that has a single card. I am at a loss at to how I can populate various fields in that card from the main stack.
I know it is something simple. I am trying to use the sub stack card to print to a pdf file. I have sized that card to have an 8.5/11 aspect ratio so the pdf ends up looking like I want it to.
What am I missing?
Tom

Edit
OOPs! The syntax for refering to a field in a substack is:

Put variable into field"x" of stack"Y"
That fixes everything.

I had tried substack"Y" before I asked for help.
Hope this helps someone else.
Tom

Post Reply