Jump to content

Alex Marshall

PTI Employee
  • Posts

    402
  • Joined

  • Days Won

    2

Everything posted by Alex Marshall

  1. Create a blank image file and specify as default.
  2. Hello, It could be that your input pdf template is buried too deep in the job folder. If you place all the job files in a single root directory, do you get the error?
  3. The CopyfitEmail() function works by identifying the @ character and copyfitting everything to the right. If you want to copyfit the entire line, use the CopyfitLine() function instead. It is used in a similar manner, although there are some added attributes. The basic function reads: CopyfitLine(staticpart, dynpart, font, size, width, minimum, justwidth) • staticpart – written as a string, this declares the text that should remain static and not be copyfitted. • dynpart – written as a string, this declares the text that should be copyfitted. • font – this is the name of the typeface to be used when copyfitting. • size – this is the size of the text that is not to be adjusted or fitted. • width – this is the width of the frame, in points. • minimum – this is the minimum font size, in points, that should be used when copyfitting. • justwidth – expressed as a boolean (true or false), this tells FusionPro to stretch the text’s width (true) or leave the width as-is (false). The rule would look like this: return CopyfitLine( Field(“email”), “Arial”, 12, 300, 8, true); Change the font name and frame width as appropriate. Or you can write your own Copyfit logic using the FusionProTextMeasure object.
  4. Did you forget that you have to name each page in the FusionPro > Manage Pages > Page Usage menu so that they match the callouts in the logic? Also, set the first page to "used" and the rest of the pages in the template to "Unused".
  5. Transferring Layout and Rules from a previous job You need to make sure that if you are using FusionPro template Rules, select “FusionPro>>Edit Rules”. Highlight the Rule and click “Convert To JavaScript”. Click “Ok”, “Ok” and save the template. This will ensure all the Rules will get transferred when using the solution I provided. If you are building an identical job that has the same layout, variable frames, rules,but different data file with the same field names, and would like to eliminate the need to reconstruct the FusionPro PDF; this tip will help. First, click "FusionPro", "Data Definition", "Wizard". Select "Import Data Source From Another Document". Click Next. Browse to the folder that contains the original pdf you want the information imported from. The name of the file will have a ".def" extension. Select it. Click "Open". Click "Finish" Click "FusionPro", "Advanced", "Import". A dialog box will appear with the following options preselected: Variable Layout, Colors, Style. Browse to the folder containing the original pdf .
  6. Create a text Rule. The script will look like this: return "A" + "1234567890123A" + "A"; or field name like so: return "A" + Field("Mydatafield") + "A"; Use this Rule instead of the field and this should produce the desired result
  7. Create a text Rule. The script will look like this: return ReplaceSubstring("A1234567890123A" , "A", ""); or field name like so: return ReplaceSubstring( Field("Mydatafield") , "A", ""); Use this Rule instead of the field and this should produce the desired result
  8. Select Create Rules >>New>>Case Selection For Name Field Rule Configure the options in this dialog as needed for your variable text. Once completed, this Rule will substitute for the field in question, and now selectable from the "Variable" drop window in the "Variable Text Editor".
  9. Did you name the pages in the template? Go to FusionPro > Manage Pages... and edit each page so that each has a name. In the Manage Pages... dialog, go ahead and set the first page to "used" and the remaining pages as "Unused".
  10. Hello, Please indicate the following Version of Fusionpro(In Acrobat, select Fusionpro>>About Fusionpro) Version of Acrobat Mac or PC? Please be very specific as to the operating platform. and send the information to: fusionprosupport@pti.com so that we can provide a solution.
  11. From Indesign, select the "Window" menu option. Enable "Fusionpro". A palette will appear. There is a small arrow when selected that will indicate "Export". Once this option is selected, you will be able to export the PDF which will then open in Acrobat when saved prompting you for the flat file, either csv or tab-delimited text. In Acrobat you can click the orange "F" on the toolbar to bring up the Fusionpro "Steps" menu. You can also access the user guide by selecting "Fusionpro>>Documentation" as well. Hope this helps.
  12. It probably depends on the font. Most fonts are designed to work optimally at normal tracking. You might want to try turning off kerning for the paragraph in question. How much tracking are you applying? Did you check the box for "Treat Return Strings As Tagged Text" in the Rule you created?
  13. It maybe an issue with Safari. Try the following. Shut down both the Acrobat and FusionPro applications, then go to /Library/Preferences/PTI/FusionPro and delete the FusionPro Preferences file. Then start up the FusionPro application before starting Acrobat. Test to see if this helped. You can also try loading FireFox, setting it as your default browser and test to see if this works.
  14. I can't build the entire rule for you, but I can try to get you started. Basically, you're going to be using the ExternalDataFileEx object to iterate through the records, similar to how the "Repeat a record" example works, except you're not going to be re-writing your input file; you're just going to be looking at the value of the field in each record and comparing it to what you already have. Something like this: var max_sales = 0; var max_sales_company = ""; var inputFileName = FusionPro.Composition.inputFileName; var dataFile = new ExternalDataFileEx(inputFileName, "\t"); for (var rec = 0; rec < dataFile.recordCount; rec++) { var sales = Int(dataFile.GetFieldValue(rec, "sales")); if (sales > max_sales) { max_sales = sales; max_sales_company = dataFile.GetFieldValue(rec, "company_name"); } } return max_sales_company; This is just to get you started. It's off the top of my head, without any real data to test against. So you may have to tweak it a bit.
  15. Hello, You will need to upgrade to our most current version of Fusionpro for Unicode support, as it is not supported in Fusionpro version 4.
  16. Janet, You need to start out with a one-up PDF template and use FP Imposer to define the 30-up layout. Is this what you are trying to achieve?
  17. Create a Formatted Text Resource. (FusionPro -> Data Definition -> Input Options -> Edit Resources -> Add, change the type to "Formatted Text".) Click Edit to bring up the Variable Text Editor for the resource. Type in whatever text you want. (For paragraph styles, start on the second line.) Create a Switch Rule to return the desired formatted resource to the text frame as needed.
  18. Click FusionPro>>Advanced>>Colors
  19. We can provide the CS5 plugin. Send the email to fusionprosupport@pti.com
  20. Why not use Acrobat's menu option, "Document>>Reduce File Size" on the large pages?
  21. In order to avoid having users modify the installed .js files, we added the ability for users to create their own .js files in the Plug-ins folder. The idea here is that the reusable logical components are not so much entire rules, but functions that other rules can be built upon. In other words, Building Blocks. However, using the Plug-ins folder also has the disadvantage that the customizations only affect jobs on that one machine. That's why we came up with the JavaScript Globals dialog, so that reusable JavaScript logic, that is, functions that are called from multiple rules (or even multiple times within the same rule), could be kept with the job. And we added the Load function so that reusable logic could be shared between jobs, even on different machines. Now, the rule templates are not so much reusable code as starting points, so simply having the rule templates on only one machine doesn't mean that you can't create rules based on those templates and still run your job with those rules on another machine without the original templates, but this could cause confusion if you are instructing your users to use a specific template, and they don't have it on their machine because a new version of FusionPro was installed but you forgot to update the RuleTemplates.English.js file with your custom version. Or if they are running under a different language and therefore loading a different RuleTemplates file. That's why I now recommend using the JavaScript Globals. You can simply copy-and-paste functions from one job's globals to another's, and the logic will always be kept with your job, that is, with the PDF file. The one drawback of this approach, as opposed to adding .js files in the Plug-ins folder, is that the functions will not appear in the Building Blocks dialog. Also, if you need a utility function only in one particular rule, you can go ahead and declare it right in the Rule Editor for that rule, at the top before the code that calls it. It will not be global to other rules, but you can call it within the rule you are editing. Alternately, you can use the Load function to process external .js files. If the .js file is in the same folder as your template PDF, this makes it easy to keep the job portable, although one caveat is that using the Collect feature from the FusionPro menu will not collect .js files, so you will have to manually copy the .js file along with the PDF template. Also, you can use the Load function with a UNC path to access a common .js file within your Windows network domain. This can be handy if you have any kind of company-wide logic that might change over time, like a seasonal logo. You can also do this on Mac by referencing a shared volume, but you need to mount the remote server manually before invoking the Load function, as there is no UNC-type auto-mounting available under the CFM Carbon/HFS architecture. (Although in the future, you may be able to use a BSD-style mount command with POSIX paths, if we can keep up with changes in the Mac runtime architecture.) Obviously, there is a lot of information here, and there are a lot of ways to share JavaScript logic between jobs. I hope I haven't confused anyone. Some of this has evolved over time, and some of it may need to be re-thought out for future versions. We are always looking for ways to improve our JavaScript interface, so please continue to let us know what you are doing, and what does and doesn't work.
  22. Did you make a backup copy before deinstalling fusionpro? Chances are if you uninstalled the program, then this file may have been deleted as well. Is this the case?
  23. Preflight the template to see where that font is specified. Also, in the FusionPro job folder where this template resides, open the "dif" file in a text editor. Query the file for "_UNDEF_ " . It will indicate where in the fusionpro template this font is being referenced. It could be representative of a space or hard return in the body of text.
  24. If the stack batch output fits evenly into or is the same size as the chunk, then the chunk size is honored. When there is a conflict between the stack size and the chunk size, multiple output files are produced using the stack batch (SxVxH) output size. This is also the case when the stack output size is greater than the chunk size. When Infinite Stack is used, a conflict is reported and one output file is generated.
×
×
  • Create New...