-
Posts
298 -
Joined
-
Days Won
11
Posts posted by ThomasLewis
-
-
If you look back at my very first post in this thread, there is a bit of vital information there to get this to work. In the imposition, you have to set the stack to 1. I've attached a revised version of your fpi file.
-
EDIT: I think I misunderstood at first, this should work:
FusionPro.Composition.chunksBreakStacks = true; var amount = parseInt(Field("Unit")); FusionPro.Composition.repeatRecordCount = amount; var rrn = FusionPro.Composition.repeatRecordNumber; if (rrn == 1) FusionPro.Composition.StartNewStack(); FindTextFrame("Content").content = '<color name="' + Field("Group") + '">' + rrn + " of " + amount;
The CSV should look like this:
Group,Unit Red,20 Green,15 Blue,32
-
I'm not real sure what you are trying to do based on your brief description. If I had to guess, you have something like:
Red, 20
Green, 15
Blue, 32
Then you want 3 separate output files with an imposition populated with the count indicated?
-
It's strictly for preview purposes. I want to be able to add some information on specific templates that users of lower variations would see. The users I have on FP Designer don't know the product very well but still want to be able to preview templates for a certain client. I guess you could think of this like a watermark on the preview screen.
-
Is there a way to check in the rule validator which variation of FusionPro the template is open on? Basically whether it's open on Designer, Desktop, or Producer.
I know you can see if the composition is inBatch and you can grab the longversion number, but neither of those work to check against all variations of the product.
-
The part of the script that needs to be altered is the part inside the quotes, not the name of the variable.
var field_id_name = "Phone Number";
Should be changed to:
var field_id_name = "Phone1";
Or as you have the variable name changed already:
var Phone1 = "Phone1";
-
Take a look at this thread here: http://forums.pti.com/showthread.php?t=3522
-
Interesting. Not sure there is a benefit to calling out unused body pages, vs. calling out individual graphics, vs. calling out single pages of a PDF. After all, you still need the graphics.
After looking at what I wrote, I can see my definition wasn't very clear. The example I posted above isn't using unused body pages in the FusionPro template. The original document is basically left alone.
This method uses a multipage PDF resource (an Illustrator CC 2015 document called screen.pdf in the zip file) where each page has a white box with a varying level of transparency applied. This allows you to only have to create a single resource that can be reused wherever you need screens. You simply grab the percentage of transparency the user selects and call that page of the resource PDF into the overlapping graphic frame. You can see how this works in the onRecordStart rule of the fusionfile.pdf document in the zip file.
-
You could just make a multipage PDF where each page is a varying degree of opacity of the white box. Then set the pagenumber to display in the graphic frame based on user selection.
Attached is an example.
-
Sorry if the workflow where you see random borders and fills when composing locally seems cumbersome, but it's the best we could think of to allow users to see the frame positioning working locally, while still keeping the ability to compose production output limited to users with the higher level licenses.
The problem with those borders is it screws up the ability to see copyfitting properly or anything at all in frames smaller than 12pt. If there were one thing I could change about FusionPro out of everything it would be the removal of those 6pt preview borders.
Evan, check the attached PDF. I made some adjustments to your code and moved it into onRecordStart. One major part was changing the values for y to hundredths of points. Also, I expanded the text frames larger than 12pt to accommodate the 6pt border so when you turn on preview you can actually see content.
-
Mac OS X 10.9.5
FusionPro VDP Creator 9.3.6
Before you get too far into this, you need to make sure you are composing the output on Producer or Producer API for x and y movement.
-
See if this works for you:
function zip_validator(zip) { if ((/^([0-9]){5}(([ ]|[-])?([0-9]){4})?$/).test(zip)) return zip; else return "invalid"; } return zip_validator(Field("zip"));
-
You need to set your input option data field to be type "Graphic". See the screen shot below.
http://i.imgur.com/rO8wYsj.jpg
-
You mean like this? http://forums.pti.com/showthread.php?t=3163
That drove me insane for a very very long time. Somewhere around 9.2/9.3 it got fixed. You might check to make sure you are on the latest version on the server.
-
You can try configuring your fonts outside Acrobat by running the program here: C:\Program Files (x86)\PTI\FusionPro\configure.exe
-
The UI Rule is Selective Exclusion. All you need to do is ctrl click on each field you want to selectively exclude from. You just need 2 or more for it to work.
-
In that case it is just a matter of putting the field name in. This would go in a regular text rule. Just call the rule wherever you need to put the page count number.
return CreateResource(Field("PD_GRAPHIC"), "graphic").countPages; -
Thanks Thomas but...
I get over 10,000 pdf's weekly and I have a data field called "PD_GRAPHIC" that pulls them in so how can I revise what you wrote to use that field to count the pages?
Thanks
Kal
I have no idea what you mean by "pulls them in". Does it create a 10,000 record input file you use in FusionPro? Where do you want the page numbers displayed?
Sample files showing your input and expected output would be helpful.
-
Give this a shot:
return CreateResource("filename.pdf", "graphic").countPages;
-
I don't see where the second choice is. The customer chooses the quantity from the drop down in the form, then orders 1 set of however many they chose.
They shouldn't get any other options than to order 1 set. I would even hide that Qty: 1, above the add to cart button, with some css.
-
Here's a sample IForm dynamic pricing file that would match the configuration. Also if you do this you probably want to set the field in Marcom to also write to the SKU or Description so you know the actual quantity on the work order.
-
You might consider just having a quantity of 1 as in 1 set that is $0.00. Then configure your pricing with IForms as dynamic pricing with different values based on the "set" of 250, 500, or 1000.
-
You have to name your pages under FusionPro/Manage Pages/Page Usage. Then use the following in OnRecordStart:
FusionPro.Composition.SetBodyPageUsage("page name", false);
-
Here's an updated version that should work with any ascii positions. Simply find the ascii number where the 0 is.
For many Adobe Pro fonts the tabular oldstyle 0 is at 63043 and proportional oldstyle 0 is at 63280.
//numerical ascii position without the var ascii = 63043; var n = "1234 S. Street, Suite 567"; return n.replace(/([0-9])/g, function(str, n) {return "" + (parseInt(n) + ascii) + ";";}).replace(/\s/g, " ");
Determine if a text frame exists
in The JavaScript Library
Posted
Sorry to pull up such an old post but I was unable to find anything similar. I'm running into the same issue where I need to check if a frame exists in validation.
Using the Try/Catch method still causes the validator to return "null". Is there any way around that?