Jump to content

ThomasLewis

Members
  • Posts

    306
  • Joined

  • Days Won

    17

ThomasLewis last won the day on October 3

ThomasLewis had the most liked content!

Converted

  • FusionPro Products
    Yes

Converted

  • FusionPro VDP software version
    13.0.4

Converted

  • OS
    Windows 10

Converted

  • Acrobat Version
    Acrobat DC

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

ThomasLewis's Achievements

Rising Star

Rising Star (9/14)

  • Helpful Rare
  • First Post Rare
  • Collaborator Rare
  • Week One Done
  • One Month Later

Recent Badges

30

Reputation

  1. I'm not sure if you are looking to do this with one of the rule wizards or writing it out in Javascript so this is how you would do either. With a Graphic Drag-and-Drop wizard you can set it up as: If [Text value of] "CurrentInternetPackageName" [is not empty] And [Text value of] "CurrentPhonePackageName" [is not empty] Then Return ["Yes Bundle"] Else Return ["No bundle"] With Javascript in an empty Graphic rule: if (Field("CurrentInternetPackageName") && Field("CurrentPhonePackageName")) return Resource("Yes Bundle"); else return Resource("No bundle");
  2. I think it really just depends on what you are doing and how well the original PDF was made. I never see that sort of reduction in the work I do, but I recall Dan saying something similar in the tests they did. Recently I had a rather huge calendar job I ran a test on where the output file was close to 5GB. It took 45 minutes to process with Basic and ran for just over 4 days with Advanced and shaved off about 5% more file size. But with smaller postcard jobs, the time to run is noticeably slower with insignificant file size reduction. These settings are just one of those "mileage may vary" sort of things where you need to test what works for you and decide if the processing time is worth the difference.
  3. I use the Basic setting for just about every job. I don't believe it applies any lossy compression. It seems to mainly just dedupe images and compress the PDF data structure, which can make a huge difference in output file sizes. In my experience, the Advanced setting causes significant slowdowns for complex artwork jobs with a minimal difference in file size compared to Basic. It's ok for text and vector based stuff, but those files are already small. For the type of work I mainly do, I find it far more of a hinderance than a help if I accidentally forget to change it, Basic is great though. I really wish we could change the default setting under User Preferences.
  4. I'm not sure why you would need a table for this. Based on your description, you should be able to use the column feature of the text frame and it will do exactly what you want. If not, perhaps a visual sample of what you are trying to accomplish would help.
  5. You can do this by overwriting the values of the fields with FusionPro.Composition.AddVariable var fields2change = ["F1","F2","F3","F4","F5","F6","F7","F8","F9","F10","F11","F12","F13","F14","F15","F16","F17","F18","F19","F20","F21"]; for (var i in FusionPro.Fields) { if (fields2change.indexOf(i) > -1 && FusionPro.Fields[i] != "") FusionPro.Composition.AddVariable(i, '<span><color name="Red">' + FusionPro.Fields[i] + '</span>', true); } In this example, first list out the field names you want to change, then loop through all the fields searching for just the ones you want to change and if they contain a value. If you find one, then you change the value using FusionPro.Composition.AddVariable to the color you want, in this case I used "Red".
  6. On older versions of FusionPro you needed the Producer or API version to do this. On version 13+ this should work on all versions. Basically you just need to figure out your line height or leading that you need to reduce by and then change the y and height attributes of a white frame behind the text. I would avoid resizing the address text frame itself as you may run into issues with the top lines being omitted but a line break still being present which will cause some copyfitting issues. The following code would go into OnRecordStart. var lineheight = 1440; //leading in hundredths var whitebox = FindTextFrame("whitebox"); var adjustment = 0; if (!Field("Company")) adjustment += lineheight; if (!Field("Title")) adjustment += lineheight; whitebox.y += adjustment; whitebox.height -= adjustment; I've attached an example. variable_white_box.zip
  7. It works perfectly fine for me. I've attached a sample you can run and check against your code. Also, I do not use InDesign to setup templates nor do I have the plugin installed. I setup everything from blank pages in Acrobat and just bring the artwork in as a resource, so I wouldn't be able to answer you on the missing palette. You may need to email support on that one. split-zips-test.zip
  8. Your syntax is a bit off. When you do evaluations you have to make sure your parentheses close in the right spots and evaluate each one like this: if (FieldChanged("ZipCode") && (first3 == "980" || first3 == "981" || first3 == "982")) or use an array if you have a bunch of different values if (FieldChanged("ZipCode") && ["980", "981", "982"].indexOf(first3) > -1) Additionally, the entire name of the output file has to be part of the OpenNewOutputFile function like so: FusionPro.Composition.OpenNewOutputFile(Field("ZipCode") + ".pdf");
  9. FusionPro.inputFileName does preserve the original path. It should be whatever it was when you imported the data file and match whatever is listed in the def file in the working folder. Problem is we still have no idea what your composition setup is since you haven't disclosed any information. You are probably capturing a local path your server can't resolve. It needs to be changed to a UNC path that the account the server is running under has access to. Assuming part of the path is right, you would need to change the root part of the path and preserve the rest and/or make sure the service account has access to it.
  10. Are you composing using Producer/Server? If so, the path will change to your working folder. You might try using FusionPro.inputFileName instead of PrimaryInputFile()
  11. Might be an issue with your slice numbers. Give this a shot: return CreateResource(PrimaryInputFile().replace(/[^\\]*$/, "") + Field("PHOTO") + ".pdf"); Although I don't really understand why you need to specify a path if the input file is in the same folder as the resources, FusionPro can generally find them by name alone without a path.
  12. This will tell you if the text in a specified frame fits or not. var txt_fr = FindTextFrame("frame_14pt"); var fptm = new FusionProTextMeasure; fptm.maxWidth = txt_fr.width; fptm.CalculateTextExtent(txt_fr.content); return (fptm.textHeight < txt_fr.height); //returns true if it fits in the 14pt text frame
  13. You can setup the paragraph formatting inline. Something like this: var data = FusionPro.GetMultiLineRecords(); var result = '<p br=false lindent=2400 findent="1400" tabstops="0;2400">'; for (var r = 1; r <= data.recordCount; r++) { var comment = data.GetFieldValue(r, "Referral Comment"); if (comment) result += '<p>&bull;<t>' + comment; } return result; As far as the other items you mention go. Again, it would be helpful to have a sample data file. I don't really see why the above code wouldn't work though. Attached is a working example. multilinesample.zip
  14. You already have the framework setup for a loop, but it looks like its never getting more than 1 value. It's hard to tell without seeing a sample of your input file, but maybe this would work out better for you. You would only need the 2 rules for this, one for each column. var data = FusionPro.GetMultiLineRecords(); var result = ""; for (var r = 1; r <= data.recordCount; r++) { var comment = data.GetFieldValue(r, "CPR Comment"); if (comment) result += comment + "<br>"; } return result;
  15. Your syntax isn't quite right. Try this instead: return '<b>' + emailarray[0] + '</b>' + "@" + emailarray[1];
×
×
  • Create New...