#21
|
||||
|
||||
![]() Quote:
Also, the attributes for scale, alignh, and alignv apply only to graphics in graphic frames, and have no effect on inline graphics in text frames, which is what these are. If you know how many pages there are going to be ahead of time, or at least the maximum, then instead of using inline graphics in a text flow and overflow pages, you could specify multiple body pages with graphic frames, which would allow you to utilize all the graphic scaling and alignment options. You could use the FusionPro.Composition.SetBodyPageUsage function to suppress the extra pages in each record. This is a bit more work to set up, but it might be worth it for the scaling options.
__________________
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)}); ![]() |
#22
|
|||
|
|||
![]()
Thanks for the info. After much trial and error, I have somewhat combined the two methods and now have a properly working product. Thanks so much for all you do Dan! You rescue us all when we're in a rut.
__________________
IndexxPrep Mac OSX 10.6.8 FP 7.2P1K CS5 |
#23
|
||||
|
||||
![]()
Anyone figure out the centering issue or glitch with this type of inline usage?
|
#24
|
|||
|
|||
![]()
@Hadrian,
The only way I could get this to work for my situation was to use a graphic box method instead of the text overflow method. Because my situation had to handle files with bleed and files without bleed, this was my only option as I could not get the overflow method to center properly for all scenarios. I put the following rule in a text rule. I create a graphic box on page 1 called "Front" and another on page 2 called "Back" and I do not assign any rule or variable field to the graphic box, the rule will do that. Here is my code: Code:
FieldName = ''; PDFfileName = ''; pagesInPDF = 0; markupToReturn = ''; pathToAllPDFs = 'Macintosh HD:Users:macuser01:Desktop:resources:'; /* change "pathToAllPDFs" value to the path where your local test files are located /* pathToPDF = ''; PDFresourceRef = ''; var FrontFrame = FindGraphicFrame("Front"); var BackFrame = FindGraphicFrame("Back"); //This is the main loop that parses through all of the fields for a given record. PDFfileName = Field("File"); pathToPDF = Field("File"); /* this one should be uncommented for marcom central */ /*pathToPDF = pathToAllPDFs; //uncomment this and comment out the one above to preview on a local machine */ //Create a new resource that references this PDFresourceRef = CreateResource(pathToPDF ,'graphic' ,'no'); //Find out how many pages it has pagesInPDF = PDFresourceRef.countPages; //This is the secondary loop for this script. //It will loop through and create markup for each page in the PDF. if (Field("Sides")=="1"){ for (pageLoop = 1; pageLoop <= pagesInPDF; pageLoop++) { FrontFrame.SetGraphic('<graphic file="' + PDFresourceRef.name + '" pagenumber = "1" scale="off" />'); return pathToPDF; } }else if (Field("Sides")=="2"){ for (pageLoop = 1; pageLoop <= pagesInPDF; pageLoop++) { FrontFrame.SetGraphic('<graphic file="' + PDFresourceRef.name + '" pagenumber = "1" scale="off" />'); BackFrame.SetGraphic('<graphic file="' + PDFresourceRef.name + '" pagenumber = "2" scale="off" />'); return pathToPDF; } } } return pathToPDF; return markupToReturn;�
__________________
IndexxPrep Mac OSX 10.6.8 FP 7.2P1K CS5 |
#25
|
||||
|
||||
![]()
@IndexxPrep
Ok I got it. I am going to use a combo as well. I appreciate it. |
#26
|
|||
|
|||
![]()
I've used this script many times without an imposition, but am having trouble using an imposition template with an infinite stack.
In the attached sample, I'm trying to get the "AK" version with 14 pages to print 3 times, the "GTC1" version with 23 pages to print 4 times, then the "SSG" version with 22 pages to print 5 times. However, it seems that since the "AK" version is first record, it composes the last 2 records with only 14 pages too and I get the error message: Quote:
Quote:
__________________
Jeff Reynolds ViaTech Publishing Windows 7 / Acrobat 10.1.3 FP VDP Creator 8.2.7 |
#27
|
|||
|
|||
![]()
I don't believe stacking works with projects where each record has a different number of pages output. When job begins to compose FP Imposer presumably calculates total number of records and multiplies that times number of pages in layout/first record to determine total pages which is used to determine where to break each stack (and thereby determine total number of sheets). This process does not take into account that each record might have different number of pages based on rules since they have not processed yet.
I have always had to output single pages in this scenario and use 3rd party imposition software for the stacking process. I will be thrilled if I turn out to be wrong! ![]() |
#28
|
|||
|
|||
![]()
Thanks esmith. I think your solution of imposing after processing is the way to go for now. Hopefully a fix is in the works for using this great script with infinite stack imposition.
__________________
Jeff Reynolds ViaTech Publishing Windows 7 / Acrobat 10.1.3 FP VDP Creator 8.2.7 |
#29
|
||||
|
||||
![]() Quote:
Quote:
Quote:
No, you're not wrong. Although it's not clear to me what the expectation is if you define a signature of, say, 2-up for a business card with a front and a back, and then you output three pages from a record.
__________________
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)}); ![]() |
#30
|
|||
|
|||
![]()
It would be nice to have the option of creating business cards (using your example) for 500 employees while generating different quantities for each employee based on title (i.e. executives get 300 each; administrative/sales gets 500 each; everyone else gets 100 each). These would all be stacked by employee in one print-ready file.
|
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|