Go Back   MarcomCentral (PTI) and FusionPro User Communities > Search Forums

Notices

Showing results 1 to 25 of 171
Search took 0.04 seconds.
Search: Posts Made By: ThomasLewis
Forum: FusionPro® VDP Server (API) March 15th, 2019, 03:05 PM
Replies: 5
Views: 2,096
Posted By ThomasLewis
Re: Original Input File Name Path

Sorry if I confused the issue with the product names. The server itself has the API on it. In this particular case, it's just used to compose jobs being sent to Producer.

I understand everything...
Forum: FusionPro® VDP Server (API) March 15th, 2019, 01:35 PM
Replies: 5
Views: 2,096
Posted By ThomasLewis
Re: Original Input File Name Path

The job is a regular template in acrobat that is then sent to the API server for composition.

What happens is data files are placed on a file server in a folder that is the job number. The input...
Forum: FusionPro® VDP Server (API) March 15th, 2019, 09:51 AM
Replies: 5
Views: 2,096
Posted By ThomasLewis
Original Input File Name Path

I'm trying to grab the name of the folder the original input file came from. FusionPro.inputFileName doesn't work because it changes to the path the scheduler uses once the file is composed.

I see...
Forum: FusionPro® VDP Creator December 7th, 2018, 04:20 PM
Replies: 3
Views: 1,118
Posted By ThomasLewis
Re: Multiple Page PDF

Here's how I would do it:


pagesInPDF = 0;
markupToReturn = '';
PDFresourceRef = CreateResource(Field("PDF"), "graphic", true);

//Find out how many pages it has
pagesInPDF =...
Forum: The JavaScript Library January 18th, 2018, 11:09 AM
Replies: 11
Views: 6,573
Posted By ThomasLewis
Re: Determine if a text frame exists

With the previous way I was trying to do this, where the only javascript in the entire template was the Load function, no errors appear at all at save and validation only would result in a "null"...
Forum: The JavaScript Library January 17th, 2018, 04:27 PM
Replies: 11
Views: 6,573
Posted By ThomasLewis
Re: Determine if a text frame exists

Adding that extra function call directly to OnRecordStart did the trick. It's working perfectly now. It's just a matter of updating all the templates to include that extra line. Thanks so much for...
Forum: The JavaScript Library January 17th, 2018, 03:01 PM
Replies: 11
Views: 6,573
Posted By ThomasLewis
Re: Determine if a text frame exists

Attached is my template with the external JS file. When you open OnRecordStart and click validate, it returns "null". If I paste the code from the JS file directly into OnRecordStart, it returns the...
Forum: The JavaScript Library January 17th, 2018, 10:50 AM
Replies: 11
Views: 6,573
Posted By ThomasLewis
Re: Determine if a text frame exists

Those examples were all very helpful.

I'll try to explain where the issue is. I have a series of templates that all use very similar javascript for the OnRecordStart callback but also require the...
Forum: The JavaScript Library January 12th, 2018, 11:26 AM
Replies: 11
Views: 6,573
Posted By ThomasLewis
Re: Determine if a text frame exists

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...
Forum: The JavaScript Library September 12th, 2016, 11:09 AM
Replies: 10
Views: 10,374
Posted By ThomasLewis
Re: Move to new sheet when field changes?

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...
Forum: The JavaScript Library September 9th, 2016, 02:34 PM
Replies: 10
Views: 10,374
Posted By ThomasLewis
Re: Move to new sheet when field changes?

EDIT: I think I misunderstood at first, this should work:


FusionPro.Composition.chunksBreakStacks = true;

var amount = parseInt(Field("Unit"));
FusionPro.Composition.repeatRecordCount =...
Forum: The JavaScript Library September 9th, 2016, 02:06 PM
Replies: 10
Views: 10,374
Posted By ThomasLewis
Re: Move to new sheet when field changes?

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...
Forum: The JavaScript Library December 8th, 2015, 10:19 AM
Replies: 2
Views: 4,569
Posted By ThomasLewis
Re: Check variation of FusionPro

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...
Forum: The JavaScript Library December 2nd, 2015, 05:30 PM
Replies: 2
Views: 4,569
Posted By ThomasLewis
Check variation of FusionPro

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...
Forum: FusionPro® VDP Creator June 25th, 2015, 11:06 AM
Replies: 9
Views: 7,135
Posted By ThomasLewis
Re: GraphicsFrame and TextFrame suppression and movement

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...
Forum: FusionPro® VDP Creator June 23rd, 2015, 04:57 PM
Replies: 9
Views: 7,135
Posted By ThomasLewis
Re: GraphicsFrame and TextFrame suppression and movement

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.
Forum: The JavaScript Library May 27th, 2015, 03:48 PM
Replies: 3
Views: 6,881
Posted By ThomasLewis
Re: Form Validation

See if this works for you:

function zip_validator(zip)
{
if ((/^([0-9]){5}(([ ]|[-])?([0-9]){4})?$/).test(zip))
return zip;
else
return "invalid";
}
Forum: FusionPro® VDP Creator May 13th, 2015, 04:21 PM
Replies: 7
Views: 10,149
Posted By ThomasLewis
Re: Compose Multiple Output of non-fixed quantities

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...
Forum: Fonts May 6th, 2015, 11:48 AM
Replies: 2
Views: 7,949
Posted By ThomasLewis
Re: Can't Load Fonts

You can try configuring your fonts outside Acrobat by running the program here: C:\Program Files (x86)\PTI\FusionPro\configure.exe
Forum: Issues, Questions, Etc. February 19th, 2015, 10:21 AM
Replies: 6
Views: 4,523
Posted By ThomasLewis
Re: Output PDF page number

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.
Forum: Issues, Questions, Etc. February 19th, 2015, 09:48 AM
Replies: 6
Views: 4,523
Posted By ThomasLewis
Re: Output PDF page number

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...
Forum: Issues, Questions, Etc. February 18th, 2015, 05:25 PM
Replies: 6
Views: 4,523
Posted By ThomasLewis
Re: Output PDF page number

Give this a shot:

return CreateResource("filename.pdf", "graphic").countPages;
Forum: Getting Started, Learning, Etc. February 3rd, 2015, 09:37 AM
Replies: 4
Views: 10,264
Posted By ThomasLewis
Re: Suppress Pages

You have to name your pages under FusionPro/Manage Pages/Page Usage. Then use the following in OnRecordStart:

FusionPro.Composition.SetBodyPageUsage("page name", false);
Forum: Formatting Text January 19th, 2015, 05:02 PM
Replies: 20
Views: 14,568
Posted By ThomasLewis
Re: How to use Oldstyle figures in FP

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...
Forum: Formatting Text January 19th, 2015, 04:09 PM
Replies: 20
Views: 14,568
Posted By ThomasLewis
Re: How to use Oldstyle figures in FP

There's a lot of good information in the links in Dan's signature. You might take a look at some of those and also learn about regular expressions. They can get quite complex depending on what you...
Showing results 1 to 25 of 171

 
Forum Jump

All times are GMT -7. The time now is 07:36 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
(c) 2011, PTI Marketing Technologies™, Inc.