sschaefering
-
Posts
20 -
Joined
Posts posted by sschaefering
-
-
In the Page Media dialog, is the command file like a ppd file or is it something completely different?
I don't think the slip sheet option would work because I don't know how many pages I would be using after the first page.
-
I'll have to keep looking.
This:
FusionPro > Manage Pages > Page Usage - select the page & click Edit > Finish Settings... > select > load and edit
isn't an option in the dinosaur version I'm stuck with
-
Is there a way to setup a FusionPro PDF so that it would pull from different printer trays? I know you could do this with Doc1 back in the day. And I think someone said there is a way to do it with FP but I don't remember what they said exactly.
-
Unfortunately, I don't know of a way to do that. What you can do is put a frame somewhere else on the page with something like "Page «$pagenum» of«$pagecount»".
I've got that on the page. Ill just have to leave that how it is then.
-
Both things work. Is there a way to do a footer that would print on every page except the last one?
-
Ill report back on the legacy leading option
Also going to implement the header tag
Thanks for your help, Dan
-
I am having an issue where a table I am generating is top aligning in a first page box but when it goes to an overflow box on a 2 or greater page it is center aligned. Has anyone else had this issue or see my error?
-
add a print sequence order to your data and then make it real small some where on the piece. we use the presort sequence number. using this sequence number makes life easier if your printer jams or if the pieces get cut wrong on the cutter and need to be redone. you wont have to guess or reprint the whole thing.
-
How would I add a border around the table? Is it an attribute in the javascript code or FusionPro setting? Its hard to find anything on the old table method since everyone is using the API now.
-
That was something I should have changed with the sample I posted. The link to external data is only for a record count. It was the only way I could figure out to get the record count to be able to step through each record. Unless that is code I don't need to use with "internal" data.
Making the 6 changes you stated got me way farther than before. Actually getting a table to display now.
I really appreciate your help, Dan.
-
I just noticed I had both string concats left in the code. My original is commented out though.
-
Yes, jobs from any older version of FusionPro should work in any newer version.
I edited my post that is before your reply
-
Would my 6.21Pc file work in the newest version?
Here is a modified version of my project.
Also a picture of what I am trying to make the table look like.
-
No its not outputting anything except the plain text at the beginning of the string. "DETAIL OF CURRENT CHARGES\n"
returnStr = 'DETAIL OF CURRENT CHARGES\n<story copyhole="DetailsTable"><table columns="2" space="above:0;below:0"'+ '< column width=4500 />'+ '< column width=4500 />'+ '<z newsize=7>';
-
I tried 2 and 1 for the "hstraddle". Could it be anything with the "<z newsize=7>"?
This is the only error now:
"The amount of text inserted into a flow exceeds the depth
of all frames in the flow <(null)>. Text is truncated."
-
I made the change with the column size and made some other changes:
for (recordWalker = 1; recordWalker <= numRecsExtDF; recordWalker++) { // <FONT style="BACKGROUND-COLOR: blue">text</FONT> // clear string variable returnStr = 'DETAIL OF CURRENT CHARGES\n<story copyhole="DetailsTable"><table columns="2" space="above:0;below:0"'+ '< column width=4500 />'+ '< column width=4500 />'+ '<z newsize=7>'; // check for service details if (Field("SERVICE") != "") { line = Field("SERVICE"); if (line.indexOf("|") != -1) { examplearray = line.split("|"); for(x = 0; x < examplearray.length; x++) { value = examplearray[x]; if(value != "") { if (value.indexOf(":") != -1) { oneMessage = value.split(':'); header = oneMessage[0]; header = header.replace("N Premises Type", "Premise Type"); (header.indexOf("Premise Type") == -1) ? (header1 = header.substring(10, 80)) : (header1 = header.substring(0, 80)); header1 = header1.replace(/^\s+|\s+$/g, ''); header2 = header.substring(140, 50); header2 = header2.replace(/^\s+|\s+$/g, ''); messageContents = oneMessage[1].split(':'); returnStr += '<row type="header"><cell hstraddle="4" shading="black,15" alignment="left"><p br=false quad=C>'+header1+'<cell hstraddle="4" shading="black,15" alignment="right"><p br=false quad=C>'+header2; } else { header = value; header = header.replace("N Premises Type", "Premise Type"); (header.indexOf("Premise Type") == -1) ? (header1 = header.substring(10, 80)) : (header1 = header.substring(0, 80)); header1 = header1.replace(/^\s+|\s+$/g, ''); header2 = header.substring(140, 50); header2 = header2.replace(/^\s+|\s+$/g, ''); returnStr += '<row type="header"><cell hstraddle="4" shading="black,15" alignment="left"><p br=false quad=C>'+header1+'<cell hstraddle="4" shading="black,15" alignment="right"><p br=false quad=C>'+header2; } } } } else if (value.indexOf(":") != -1) { oneMessage = value.split(':'); header = oneMessage[0]; header = header.replace("N Premises Type", "Premise Type"); (header.indexOf("Premise Type") == -1) ? (header1 = header.substring(10, 80)) : (header1 = header.substring(0, 80)); header1 = header1.replace(/^\s+|\s+$/g, ''); header2 = header.substring(140, 50); header2 = header2.replace(/^\s+|\s+$/g, ''); messageContents = oneMessage[1].split(':'); returnStr += '<row type="header"><cell hstraddle="4" shading="black,15" alignment="left"><p br=false quad=C>'+header1+'<cell hstraddle="4" shading="black,15" alignment="right"><p br=false quad=C>'+header2; } else { header = value; header = header.replace("N Premises Type", "Premise Type"); (header.indexOf("Premise Type") == -1) ? (header1 = header.substring(10, 80)) : (header1 = header.substring(0, 80)); header1 = header1.replace(/^\s+|\s+$/g, ''); header2 = header.substring(140, 50); header2 = header2.replace(/^\s+|\s+$/g, ''); returnStr += '<row type="header"><cell hstraddle="4" shading="black,15" alignment="left"><p br=false quad=C>'+header1+'<cell hstraddle="4" shading="black,15" alignment="right"><p br=false quad=C>'+header2; } } else { returnStr = '<row type="header">'+'No Current Charges!'; } returnStr += '<cell rulings="right:thin,black"><p br=false quad=C><cell></table></story>'; return returnStr; }
And I'm still getting the error:
"Extra cell started <Line Items> row #0 - Ignoring The amount of text inserted into a flow exceeds the depth of all frames in the flow <(null)>. Text is truncated."
-
Ill try that column size and let you know. And yes, I'll have to adjust my code. I'm making a table from a string per record from my data set.
-
I am trying to format a string to return as a table. I keep getting this error:
Table cell margins exceed cell width; text cannot be set: Row 0, Column 0
Table cell margins exceed cell width; text cannot be set: Row 1, Column 0
Extra cell started <Line Items> row #0 - Ignoring
Table cell margins exceed cell width; text cannot be set: Row 2, Column 0
The amount of text inserted into a flow exceeds the depth
of all frames in the flow <(null)>. Text is truncated.
I'm using Desktop 6.21Pc on Acrobat 9. I have the treat returned strings as tagged text checked.
here is my code:
var returnStr = ''; var header = ''; var header1 = ''; var header2 = ''; var services = ''; var line = ''; var examplearray = ''; var oneMessage = ''; var messageContents = ''; var recordWalker = 0; //If statement to check that user is in composition mode if (FusionPro.Composition.isPreview == true || FusionPro.inValidation == true) { Rule("OnJobStart"); } //Count the records in the external data numRecsExtDF = externalDF.recordCount; //Loop through data for (recordWalker = 1; recordWalker <= numRecsExtDF; recordWalker++) { // <FONT style="BACKGROUND-COLOR: blue">text</FONT> // clear string variable returnStr = 'DETAIL OF CURRENT CHARGES\n<story copyhole="DetailsTable"><table columns="2" space="above:0;below:0"'+ '< column width=200 />'+ '< column width=200 />'+ '<z newsize=7>'; // check for service details if (Field("SERVICE") != "") { line = Field("SERVICE"); if (line.indexOf("|") != -1) { examplearray = line.split("|"); for(x = 0; x < examplearray.length; x++) { value = examplearray[x]; if(value != "") { if (value.indexOf(":") != -1) { oneMessage = value.split(':'); header = oneMessage[0]; header = header.replace("N Premises Type", "Premise Type"); (header.indexOf("Premise Type") == -1) ? (header1 = header.substring(10, 80)) : (header1 = header.substring(0, 80)); header1 = header1.replace(/^\s+|\s+$/g, ''); header2 = header.substring(140, 50); header2 = header2.replace(/^\s+|\s+$/g, ''); messageContents = oneMessage[1].split(':'); returnStr += '<row type="header"><cell hstraddle="4" shading="black,15" alignment="left"><p br=false quad=C>'+header1+'<cell hstraddle="4" shading="black,15" alignment="right"><p br=false quad=C>'+header2; } else { header = value; header = header.replace("N Premises Type", "Premise Type"); (header.indexOf("Premise Type") == -1) ? (header1 = header.substring(10, 80)) : (header1 = header.substring(0, 80)); header1 = header1.replace(/^\s+|\s+$/g, ''); header2 = header.substring(140, 50); header2 = header2.replace(/^\s+|\s+$/g, ''); returnStr += '<row type="header"><cell hstraddle="4" shading="black,15" alignment="left"><p br=false quad=C>'+header1+'<cell hstraddle="4" shading="black,15" alignment="right"><p br=false quad=C>'+header2; } } } } else if (value.indexOf(":") != -1) { oneMessage = value.split(':'); header = oneMessage[0]; header = header.replace("N Premises Type", "Premise Type"); (header.indexOf("Premise Type") == -1) ? (header1 = header.substring(10, 80)) : (header1 = header.substring(0, 80)); header1 = header1.replace(/^\s+|\s+$/g, ''); header2 = header.substring(140, 50); header2 = header2.replace(/^\s+|\s+$/g, ''); messageContents = oneMessage[1].split(':'); returnStr += '<row type="header"><cell hstraddle="4" shading="black,15" alignment="left"><p br=false quad=C>'+header1+'<cell hstraddle="4" shading="black,15" alignment="right"><p br=false quad=C>'+header2; } else { header = value; header = header.replace("N Premises Type", "Premise Type"); (header.indexOf("Premise Type") == -1) ? (header1 = header.substring(10, 80)) : (header1 = header.substring(0, 80)); header1 = header1.replace(/^\s+|\s+$/g, ''); header2 = header.substring(140, 50); header2 = header2.replace(/^\s+|\s+$/g, ''); returnStr += '<row type="header"><cell hstraddle="4" shading="black,15" alignment="left"><p br=false quad=C>'+header1+'<cell hstraddle="4" shading="black,15" alignment="right"><p br=false quad=C>'+header2; } } else { returnStr = '<row type="header">'+'No Current Charges!'; } } returnStr += '<cell rulings="right:thin,black"><p br=false quad=C><cell></table></story>'; return returnStr;
Automation
in FusionPro® VDP Creator
Posted
Is it possible to have a .bat script run Acrobat/Fusion Pro?
I have to make 5 or 6 different PDFs and would like to be able to have a script make them each.