#1
|
||||
|
||||
![]()
Let's say that, through the course of a normal variable-data newsletter operation, some of the newsletters get mangled in the tabber after another flawless print run out of FusionPro. Or they get crushed in the folder/creaser. Or they get trimmed wrong. So, say in a 1,000-record job, I need to reprint records 2, 345-351, 657, and 987-998.
Is there an easy way to print a complex range of records in FusionPro? All I get in the Composition Settings Dialog box for Input is [ ] ALL; or, [ ] ____ to ____. As it stands now, if I had the problem in the example above, I'm composing 4 files, one for 2, one for 345-351, one for 657, and one for 987-998, then I'm combining those all into one PDF file for reprinting. I'm thinking that there's GOT to be a better way to do this. I can go back in and edit my source CSV file, and then save it as the "repairs" file, but that's a kludge. I would LOVE to be able to specify a range of records to print, just like printing pages from InDesign or Quark XPress. In a multi-page document, I can specify printing pages: 2, 345-351, 657, 987-998. And it will print JUST those pages. If there's NOT a way to do this currently, can I humbly submit this for a feature request in future versions? (Like 6.1 ?) Thanks!
__________________
"I say we take off and nuke the entire site from orbit. It's the only way to be sure." |
#2
|
||||
|
||||
![]()
I haven't tried to do this, but I think you should be able to do it within an OnRecordStart rule. It would be a pretty conveluded "if-else" statement and combine this a "FusionPro.Composition.composeThisRecord = false;" and you should be able to specify a range that you want. However, it wouldn't be in the actual composition menu, you would have to compose the entire file to do this - or at least enough to cover your range values.
FusionPro.Composition.composeThisRecord = false; If (CurrentRecordNumber() == 2) { ...FusionPro.Composition.composeThisRecord = true; } else if ((CurrentRecordNumber() >= 345) && (CurrentRecordNumber() <= 351)) { ...FusionPro.Composition.composeThisRecord = true; } else if ..... and so on This way you only turn on the value to compose that specific record if it is within your range values in the if statements. Good Luck
__________________
David A. Sweet Variable Data Specialist HKM Direct Market Communications Windows 7, Acrobat 10.x FusionPro Desktop and Server 10.0.26 |
#3
|
||||
|
||||
![]()
Heh, thanks, Dave!
I suppose I could write a giant if...then loop for every time I have to create a repairs file, but in reality it will be easier to just edit the .csv data file that gets imported. (And then compose JUST the records that need to be reprinted.) So... hey - maybe Printable could put this feature request on the fast track for inclusion in 6.1? ... maybe? ![]()
__________________
"I say we take off and nuke the entire site from orbit. It's the only way to be sure." |
#4
|
||||
|
||||
![]() Quote:
Quote:
Code:
FusionPro.Composition.composeThisRecord = (CurrentRecordNumber() == 2) || ((CurrentRecordNumber() >= 345) && (CurrentRecordNumber() <= 351)) || ((CurrentRecordNumber() >= 987) && (CurrentRecordNumber() <= 998)); return FusionPro.Composition.composeThisRecord; Code:
var val = CurrentRecordNumber(); FusionPro.Composition.composeThisRecord = (val == 2) || ((val >= 345) && (val <= 351)) || ((val >= 987) && (val <= 998)); return FusionPro.Composition.composeThisRecord; Also, you can use the Building Blocks dialog to iterate through the records and test to make sure that the result is what you want for each record. That's why we're returning the value at the end. You could also use the Print statement to write a message to the log file for each record saying what the result is. Still, this logic can be generalized even further. Consider this: Code:
function CheckRanges(val) { switch (val) { case 2: case 657: // etc. return true; } switch (true) { case (val >= 345 && val <= 351): case (val >= 987 && val <= 998): // etc. return true; } return false; } FusionPro.Composition.composeThisRecord = CheckRanges(CurrentRecordNumber()); return FusionPro.Composition.composeThisRecord; But wait, there's more! If you order now, you also get this: Code:
var ranges = [ 2, [345,351], 657, [987,998] ]; function CheckRanges(val) { for (var i in ranges) { if (ranges[i] instanceof Array) { if (val >= ranges[i][0] && val <= ranges[i][1]) return true; } else if (val == ranges[i]) return true; } return false; } FusionPro.Composition.composeThisRecord = CheckRanges(CurrentRecordNumber()); return FusionPro.Composition.composeThisRecord; Even more succinctly: Code:
var ranges = [ 2, [345,351], 657, [987,998] ]; function CheckRanges(val) { for (var i in ranges) if (val == ranges[i] || ((ranges[i] instanceof Array) && val >= ranges[i][0] && val <= ranges[i][1])) return true; return false; } FusionPro.Composition.composeThisRecord = CheckRanges(CurrentRecordNumber()); return FusionPro.Composition.composeThisRecord; Code:
var ranges = [ 7, [15,34], [75,83] ]; //etc. This kind of thing is exactly why we provide a JavaScript-based rules subsystem with hooks into the composition engine, so that you can do whatever job-specific thing you want to do with a few lines of code, instead of us having to implement dozens of custom dialogs to do a small subset of what some customers might want.
__________________
Dan Korn FusionPro Developer / JavaScript Guru / Forum Moderator PTI Marketing Technologies | Printable | MarcomCentral I am a not a Support engineer, and this forum is not a substitute for Support. My participation on this forum is primarily as a fellow user (and a forum moderator). I am happy to provide help and answers to questions when I can; however, there is no guarantee that I, or anyone else on this forum, will be able to answer all questions or fix any problems. If I ask for files to clarify an issue, I might not be able to look at them personally. I am not able to answer private messages, emails, or phone calls unless they go through proper Support channels. Please direct any sales or pricing questions to your salesperson or inquiries@marcom.com. Complex template-building questions, as well as all installation and font questions or problems, should be directed to FusionProSupport@marcom.com. Paid consulting work may be required to fulfill your template-building needs. This is a publicly viewable forum. Please DO NOT post fonts, or other proprietary content, to this forum. Also, please DO NOT post any "live" data with real names, addresses, or any other personal, private, or confidential data. Please include the specific versions of FusionPro, Acrobat, and your operating system in any problem reports or help requests. I recommend putting this information in your forum signature. Please also check your composition log (.msg) file for relevant error or warning messages. Please post questions specific to the MarcomCentral Enterprise and Web-to-Print applications in the MarcomCentral forum. Click here to request access. Or contact your Business Relationship Manager (BRM/CPM) for assistance. Please direct any questions specific to EFI's Digital StoreFront (DSF) to EFI support. How To Ask Questions The Smart Way The correct spellings are JavaScript, FusionPro, and MarcomCentral (each with two capital letters and no spaces). Acceptable abbreviations are JS, FP, and MC (or MCC). There is no "S" at the end of "Expression" or "Printable"! The name of the product is FusionPro, not "Fusion". "Java" is not is not the same as JavaScript. Check out the JavaScript Guide and JavaScript Reference! FusionPro 8.0 and newer use JavaScript 1.7. Older versions use JavaScript 1.5. return "KbwbTdsjqu!spdlt\"".replace(/./g,function(w){return String.fromCharCode(w.charCodeAt()-1)}); ![]() |
#5
|
||||
|
||||
![]()
WOW - thanks, Dan!
... I'm imagining Dan Korn with a headset mic like Vince from ShamWOW... "We can't do this all day.. so if you call in the NEXT 20 minutes..." Hehe. And, to answer Dan's question of "I can't imagine any enhancement to the GUI that would be any simpler than that.", I offer you THIS gem: ![]() Anyway, that's how I would envision it, in the Compose dialog box. A function like this would be extremely useful when running "repair" lists for, say, when a range of records of a printed mailpiece gets garbled in the diecutter after bring printed.
__________________
"I say we take off and nuke the entire site from orbit. It's the only way to be sure." |
#6
|
||||
|
||||
![]() Quote:
![]() And if I can envision anyone here doing the ShamWOW thing, it would be our Director of Product Management, Mark Hilger. Hi Mark! ![]() Quote:
But my point about exposing scriptable hooks instead of making new GUI elements is that this is just one of literally hundreds of enhancements that we could make to the product by coding up more dialogs, or even modifying existing ones. But there are several disadvantages to that. The main one is that changing the features in the GUI requires changing the dialogs, which we have to do here, and then we have to release a new version. And we have to make the dialogs work right on multiple platforms, which is no small feat. Scriptable components, on the other hand, are easier to add, and they can be built upon by writing new scripts without making a new release of the software. The other problem is that, even with an enhancement like you suggest, it's still somewhat rigid. Sure, you can specify any number of abritrary ranges, but what if you wanted to do something like re-compose every fifth record, or every record where the LastName field starts with M, or every record with a particular graphic? We simply can't anticipate every possible variation that a customer might need in the future and code up another specialized dialog for it. That's why we embed the JavaScript engine, which lets you code up just about any algorithm you'll ever need. Sure, we sometimes need to add new hooks so that more things are scriptable. And of course, we don't want you to have to write a JavaScript rule to do everything, so we do try to keep things nice and WYSIWYG and point-and-clicky where we can, but ultimately scriptability provides the most flexibility. The reason you have a computer is so that you can program it to do exactly what you want it to do. At least that's my perspective as a developer.
__________________
Dan Korn FusionPro Developer / JavaScript Guru / Forum Moderator PTI Marketing Technologies | Printable | MarcomCentral I am a not a Support engineer, and this forum is not a substitute for Support. My participation on this forum is primarily as a fellow user (and a forum moderator). I am happy to provide help and answers to questions when I can; however, there is no guarantee that I, or anyone else on this forum, will be able to answer all questions or fix any problems. If I ask for files to clarify an issue, I might not be able to look at them personally. I am not able to answer private messages, emails, or phone calls unless they go through proper Support channels. Please direct any sales or pricing questions to your salesperson or inquiries@marcom.com. Complex template-building questions, as well as all installation and font questions or problems, should be directed to FusionProSupport@marcom.com. Paid consulting work may be required to fulfill your template-building needs. This is a publicly viewable forum. Please DO NOT post fonts, or other proprietary content, to this forum. Also, please DO NOT post any "live" data with real names, addresses, or any other personal, private, or confidential data. Please include the specific versions of FusionPro, Acrobat, and your operating system in any problem reports or help requests. I recommend putting this information in your forum signature. Please also check your composition log (.msg) file for relevant error or warning messages. Please post questions specific to the MarcomCentral Enterprise and Web-to-Print applications in the MarcomCentral forum. Click here to request access. Or contact your Business Relationship Manager (BRM/CPM) for assistance. Please direct any questions specific to EFI's Digital StoreFront (DSF) to EFI support. How To Ask Questions The Smart Way The correct spellings are JavaScript, FusionPro, and MarcomCentral (each with two capital letters and no spaces). Acceptable abbreviations are JS, FP, and MC (or MCC). There is no "S" at the end of "Expression" or "Printable"! The name of the product is FusionPro, not "Fusion". "Java" is not is not the same as JavaScript. Check out the JavaScript Guide and JavaScript Reference! FusionPro 8.0 and newer use JavaScript 1.7. Older versions use JavaScript 1.5. return "KbwbTdsjqu!spdlt\"".replace(/./g,function(w){return String.fromCharCode(w.charCodeAt()-1)}); ![]() Last edited by Dan Korn; January 30th, 2009 at 03:46 PM.. Reason: fixed Mark's title |
#7
|
||||
|
||||
![]() Quote:
Is it possible to use the above JavaScript to also compose those record ranges as individual files? Or would that be similar to "arbitrary chunking", as described in Post #2 in this thread I previously started? |
#8
|
||||
|
||||
![]() Quote:
Quote:
__________________
Dan Korn FusionPro Developer / JavaScript Guru / Forum Moderator PTI Marketing Technologies | Printable | MarcomCentral I am a not a Support engineer, and this forum is not a substitute for Support. My participation on this forum is primarily as a fellow user (and a forum moderator). I am happy to provide help and answers to questions when I can; however, there is no guarantee that I, or anyone else on this forum, will be able to answer all questions or fix any problems. If I ask for files to clarify an issue, I might not be able to look at them personally. I am not able to answer private messages, emails, or phone calls unless they go through proper Support channels. Please direct any sales or pricing questions to your salesperson or inquiries@marcom.com. Complex template-building questions, as well as all installation and font questions or problems, should be directed to FusionProSupport@marcom.com. Paid consulting work may be required to fulfill your template-building needs. This is a publicly viewable forum. Please DO NOT post fonts, or other proprietary content, to this forum. Also, please DO NOT post any "live" data with real names, addresses, or any other personal, private, or confidential data. Please include the specific versions of FusionPro, Acrobat, and your operating system in any problem reports or help requests. I recommend putting this information in your forum signature. Please also check your composition log (.msg) file for relevant error or warning messages. Please post questions specific to the MarcomCentral Enterprise and Web-to-Print applications in the MarcomCentral forum. Click here to request access. Or contact your Business Relationship Manager (BRM/CPM) for assistance. Please direct any questions specific to EFI's Digital StoreFront (DSF) to EFI support. How To Ask Questions The Smart Way The correct spellings are JavaScript, FusionPro, and MarcomCentral (each with two capital letters and no spaces). Acceptable abbreviations are JS, FP, and MC (or MCC). There is no "S" at the end of "Expression" or "Printable"! The name of the product is FusionPro, not "Fusion". "Java" is not is not the same as JavaScript. Check out the JavaScript Guide and JavaScript Reference! FusionPro 8.0 and newer use JavaScript 1.7. Older versions use JavaScript 1.5. return "KbwbTdsjqu!spdlt\"".replace(/./g,function(w){return String.fromCharCode(w.charCodeAt()-1)}); ![]() |
#9
|
|||
|
|||
![]()
I was looking for another solution and ran across this post. Any chance this feature has been added that LeberMac showed a sample of? I read the entire post and I understand the point that theres only so many things you can add but I can't imagine this not being a huges selling point to every printer in the variable print business. Almost every print job that involves finishing work results in some waste. I would use this on a daily basis for my reprints. Just throwing this out there from someone in the field.
|
#10
|
||||
|
||||
![]()
No, that feature was not added to the latest version of FP and I don't get the impression from the prior posts that they had/have any intention of doing so.
However, with the latest version of the software, you are capable of accomplishing everything discussed in thread - including the arbitrary chunking of reprint records via JavaScript coding.
__________________
Ste Pennell FusionPro VDP Creator 9.3.15 Adobe Acrobat X 10.1.1 Mac OS X 10.12 |
![]() |
Tags |
compose, non-consecutive records, print range, range of records |
Thread Tools | Search this Thread |
Display Modes | |
|
|