Can you post a screenshot of your script?
Thank you for your prompt response, but never mind, I just resolve this issue uninstalling and reinstalling again FMPA 12
I can't seem to start a new discussion, so if I may ask a PDF-related question here:
Is there any way to output a one-page PDF of a user-specified, highly variable, size? For example, I might want to output one record or layout at 640x480px, the next one at 444x322px, etc. This is for Mac, FMP11 or FMP12. Any insights welcome. Plug-ins ok.
ScriptMaster with iText
Define the problem specifically and I should be able to point to an answer
First thing. PDF pages are measured in points (at 72dpi)
Thanks for helping. I'm trying to output what can be thought of as puzzle pieces, as files. They can be of many different sizes (potentially, a couple hundred), depending. I would like PDF so that the text is always crisp, but which are created at the size they will be used at so that no cropping or scaling is required. Does that make sense?
I looked up iText. Since Scriptmaster is written in Java, you're suggesting iText could be incorporated into it somehow?
It is a java library so when it is loaded you can access its functions through ScriptMaster....
Am at Devcon at the moment so quite occupied but can certainly point in the right direction after that
Want quite sure what you meant about PDF sizing and clarity. Apart form imported images PDF is a vector format so text is 'crisp' at whatever size you display it, but then the size you display is determined by the zoom on your viewer application. Are you talking about putting the PDf files into Filemaker to store/view or just creating from FM and then viewing outside with Acrobat Reader or similar.
Thanks. I'm not looking necessarily to store the PDFs in FM. My main goal is to output the files at any page size dimensions that I can specify. Ha, wish I was at the DevCon!
I don't know if any plugins will support on-the-fly page size setups, but FM-layout-based PDFs are dependant on the Page/Print Setup. It can be managed by scripting, but is limited by the installed and available printer drivers' supported page sizes.
[ Stray thought: Has anyone saved a container file content in PDF file format based solely on the graphic content of the field, using export field content or any of the new container calculation functions?]
> FM-layout-based PDFs are dependant on the Page/Print Setup... limited by the installed and available printer drivers
Ya, I think that's the main problem here. Seems like PDF can be written as text, so maybe I could try to figure out a raw PDF text template (if such a thing exists), make some substitutions in FM, and output a text file with a .pdf extension?
The encoded file of a PDF might be viewable, or even writeable, as text, but the text encoding I saw for postscript some years back was huge and not human-intelligible, running into many dozens of pages of code just for the basic file sctructure. Things may have changed with later Postcript versions, as I abandoned pusuing that idea way back then. I suspect that the postcript code in a PDF is still essentially impossible to compile via a calculated text result. BUT...
If you find anything promising, let us know. I suspect it would be quite useful to many of us.
OK, thanks, that's good info. Sounds too daunting for me, probably have to just go with Applescript.
The OP was about making PDF files of indeterminate sizes, based on some content need.
This is a piece of cake in ScriptMaster and can be any size
Theoretically, you could create pages of any size, but the PDF
specification imposes limits depending on the PDF version of the
document that contains those pages. For PDF 1.3 or earlier, the minimum
page size is 72 x 72 units (1 x 1 in); the maximum is 3,240 x 3,240
units (45 x 45 in). Later versions have a minimum size of 3 x 3 units
(approximately 0.04 x 0.04 in) and a maximum of 14,400 x 14,400 units
(200 x 200 in).
So next question is what is the content you are trying to put in the PDF?? Where is it coming from?
We have installed FMP12v3 on different windows machines and many have crashes on -Save as PDF- script. The PDF files are around 150-900kB.
In the FMP11 the files are ~50% smaller and the Save as PDF script runns much faster.
Does anybody have a solution for the crashes?