Jump to content

lance

Registered Users - Approved
  • Posts

    33
  • Joined

Converted

  • Location
    Cedar Falls, Iowa

Converted

  • FusionPro Products
    No

lance's Achievements

Contributor

Contributor (5/14)

  • First Post Rare
  • Collaborator Rare
  • Conversation Starter Rare
  • Week One Done
  • One Month Later

Recent Badges

10

Reputation

  1. Sorry to necro this thread, but there is no answer posted and we are having the same issue. We are using the most current version of FPI Imposer. What we need is exactly the 'Perfect Bound Booklet' layout, but with the ability to change the head margin. The ability to change the spine margin would be a bonus. Or am I missing a completely obvious solution that already exists for creating a standard 8-page signature with head trim? Thanks.
  2. I had this issue, and what I found was that the first time you compose after starting the FusionPro app, the fonts will embed correctly. Every subsequent compose, they do not embed. I have been quitting the app after every compose. I also put in a support call for it, and the workaround I got back was that if you turn of the checkbox for limiting to Mac Roman in the Advanced tab of the compose dialog box, the embedding will work.
  3. Is an Apple Silicone native version coming?
  4. We had the same issue when using a case-sensitive file system, and changing the template pdf name to all lowercase was the workaround.
  5. Thanks for the in-depth explanation. I think I have a better understanding of what is supposed to be happening. Unfortunately, it still doesn't work. I tried each of the first two code examples in your post. It should work like so: Dear Lance > Dear The Lance-meister > Dear The Lance-inator > Sup The Lance-inator. However, what I actually get is Sup Lance. Only the last replacement in the charMap is applied. If I reorder the list, the output changes to whatever is in the last position. The third example you have, where the values are written to a variable within each loop, returns the correct result. But, there is another issue. None of the three examples work when the field is used within a rule, only when used directly as a variable in the Variable Text Editor (using Insert and picking from the popup list). So what I have in my test file right now is a datafile with two fields: name and suffix. I have a value of 'first_last' for the name field and a value of 'suffix' for the suffix field. Here are my rules: OnRecordStart: var charMap = { "first" : "FIRST", "last" : "LAST", } for (var field in FusionPro.Fields) { for (var find in charMap) { var replace = charMap[find]; FusionPro.Composition.AddVariable(field, ReplaceSubstring(Field(field), find, replace), true); } } So that should change 'first_last' to 'FIRST_LAST'. If I insert the name variable directly into the Variable Text Editor I end up with a result of 'first_LAST' (only the last charMap entry is applied). This is my second rule: var n = ""; var suffix = ""; if (Field("name") != "") n = Field("name"); if (n != "" && Field("suffix") != "") suffix = ", " + Field("suffix"); return n + suffix; That should return (when combined with the OnRecordStart rule) 'FIRST_LAST, suffix'. Instead it returns 'first_last, suffix' (not even the partially working replacement is applied). I am also attaching my collect files in case that helps. Thanks tn000002.zip
  6. // An object of values to find as the keys, // and the string to replace them with as the value. var charMap = { // Find : Replace "&" : "&", "&rsquor" : "’", "'" : "’", } // Loop through all of the fields. for (var field in FusionPro.Fields) { // Loop through all of the find/replace values for current field. for (var find in charMap) { var replace = charMap[find]; FusionPro.Composition.[color="red"]AddVariable[/color](field, ReplaceSubstring(Field(field), find, replace), true); } } The red highlighted part is what I am questioning. Isn't this just re-adding (overwriting) and re-defining the variable each iteration through the for loop?
  7. I was playing around with this, and I was getting the same issue, where nothing appeared to change. I think the problem is that as it loops through each entry in the charMap it is re-adding a variable, overwriting everything it had done up to that point (i.e. the changes aren't cumulative from entry to entry). So really all it is doing is a ReplaceSubstring() on the very last entry in the charMap. If that entry doesn't result in a change, then it appears as nothing has changed. I think.
  8. Thanks. Yes, it looks like I missed the last couple of messages in the thread where that was explained. Here is what I am trying to do. I have a client that uses the font Whitney almost exclusively. But, wherever there is a number, they want to use the smallcap version of the current face. So, I made a global function: function SMALLCAPS(incoming_text, font_name) { incoming_text = incoming_text.replace(/([0-9])/g, "<f name = \"" + font_name + " SC\">$1<f name = \"" + font_name + "\">"); return incoming_text; }and then I have to make a rule to call it for each field: var font_name = "Whitney Book"; return SMALLCAPS(TaggedDataField("street_address"),font_name);Esentially I am creating a rule for every field they have in their file. I would love to have a way to globally change the fonts for the numbers. Possible?
  9. I am trying to do something similar and thought the code in this post would be a good starting point. However, I can't seem to get it to work. I made a blank pdf, and a dummy data file with three fields. I added a text box, placed the fields in it, and then set the font to Whitney Book using the GUI. Then I added the following OnRecordStart rule: for (var i in FusionPro.Fields) FusionPro.Composition.AddVariable(i, ReplaceSubstring(Field(i), "Whitney Book", "Wingdings", true));This rule validates fine, but doesn't actually change the text at all; neither in preview or on output. Am I missing something? I want to get this working before I start trying to change the code for what I need. Thanks.
  10. We have a client who wants to order a versioned product that would have a specific indicia based on the number of pieces ordered. We have done this before on variable products based on list quantity, but there will be no list uploaded for this job. Is there a way for a FP template to access the quantity ordered information from the web form at composition? Thanks.
  11. I am having an issue with FusionPro VDP when collecting files for uploading to MarcomCentral. After first launching Acrobat, the collect feature works as it should. However, after the first collect, any subsequent collect attempts get written to the same folder as the first collect, no matter where I choose them to be collected. So, if I collect the files for product_1 into the product_1 folder, then move on to product_2 and try to collect those files into the product_2 folder, it will write into the product_1 folder, even though I clearly chose the product_2 location in the collect dialog box. If, in the meantime, I have deleted the product_1 folder, I will then get an error when trying to collect. First I get a dialog box that reads: Collect finished with possible errors. Please check the log file in <>. (OK)(View Log) If I choose (View Log) I get a second box that reads: Failed to collect files, error no.: -50 Then a finder window opens to ComputerName > HardDrive Name > Applications > Adobe Acrobat X Pro > Adobe Acrobat Pro.app > Contents > MacOS There is no log file at this location. If I quit and restart Acrobat, the first collect will work fine again, but then subsequent ones will try writing to that same location again. It is pretty annoying to have to relaunch Acrobat every time I need to collect files to ensure they are getting written to the correct location. Any suggestions?
  12. /Library/Application Support/PTI/FusionPro/Builtins.js
  13. I just had the exact same issue with the C128B barcode. The code in the Builtins.js seems wrong. It is using wrong start and stop characters ( should be 'Ì' and 'Î', but it is returning 'Ã' and 'Œ' ). The start and stop codes should be 104 and 106, not 204 and 206. But even if you change them to 104 and 106 it still returns the wrong characters, by 32. It returns h and j which are 72 and 74. Add 32 to both of those and you get 104 and 106. I just changed the following line: var Make128BarcodeBase_Result = String.fromCharCode(StartCode) + str+""+String.fromCharCode(CharToPrintForCheckSum)+String.fromCharCode(EndCode);to: var Make128BarcodeBase_Result = 'Ì' + str+""+String.fromCharCode(CharToPrintForCheckSum)+'Î';and it worked.
  14. I am running into an issue with several types of barcodes when the final output type is vdx. The one I am trying to get working currently is a 3 of 9 barcode. In the FusionPro pdf the barcode previews correctly (see attachment fp.gif). When output to a pdf the barcode is correct (see attachment pdf.gif). When output to ps and run through our Nexpress front end to preview, the barcode is correct. However, when output to vdx and run through our Nexpress front end to preview, the barcode is getting cropped severely at the top and slightly at the bottom (see attachment vdx.gif). If I open the vdx in Acrobat, the page with the barcode shows the barcode improperly cropped (see attachment vdx_detail.gif), but the entirety of the barcode is actually there. I can grab the barcode with a Pitstop selection tool and move it to see the cropped areas. It is just falling outside of the media boxes. It seems like the bounding area isn't getting generated correctly for the barcode object. Any ideas? Thanks. results.zip
×
×
  • Create New...