One more about fashion's Smile: refresh PDF holder?

After setting the contents of a PDF holder, do you know how can I “refresh” it to get the stuff displayed, instead of the “old” contents? :?:

How do you display a PDF in the PDF holder, I’m trying the following
set contained data of dialog item i of thedialog to “” – the PdfData

JB

He, he… I was trying that almost 30 minutes :lol:
I’m following Smile’s documentation instructions (look at the Dialog’s “Palette”, then edit “new pdf holder”'s script -command+option+click). By the way:

on DrawBanner()
	
	set di to dialog item 1 of dialog "test dialog"
	
	BeginPDF({0, 0, 250, 250})
	SetFillColor({1, 0, 0, 1})
	RectPath({20, 20, 150, 50})
	DrawPath(3)
	set thePDF to EndPDF()
	
	
	set «class PDF » of di to thePDF
end DrawBanner

Seems that you must build the PDF on-the-fly, then apply it as data to a pdf holder. You can use every command at “Graphic Kernel Quick Reference”, within “More Stuff > Documentation”.
This rocks! :smiley:

How do I go about this, if I want to import PDF’s into a PDF holder rather than create them in smile, I have been trying this for ages but cant seem to get it to work.

Steve

It’s written in the documentation of Smile;

Help Menu>Making & Manipulating PDF > chapter 5

Thanks for that

I can see how you do this manually through the contextual menu, but how do I do it under script control, i.e what I want my script to do, is if I find a PDf in a folder import this into the PDF holder, then remove it once its left the folder, ready for the next.

Steve

There is no such choice. In the Smiile Help menu, there is Smile Help; GeomLib Quick Reference; and Graphic Kernel Quick Reference.

That’s because you’ve downloaded the latest version of Smile, and a lo of things are changing from one verion to one other. It’s true that this file is not there anymore, I would recommend you to read the full documentation (nearly 200 pages) on Smile, you’ll find very important things in it about making PDF.

BTW : it’s now possible to make movies using several PDF with Smile.