Jump to content

Developer

Registered Users - Approved
  • Posts

    29
  • Joined

Everything posted by Developer

  1. Does FusionPro scale well on a 4K (3840 x 2160 resolution) monitor? I'm considering purchase of a 32 inch 4K monitor, and spend much of my time in Acrobat / FusionPro. The 4K monitors are still pricey, so I want to make sure FusionPro will look good and scale well before making the investment. Thanks in advance!
  2. You could try something like this to form the address block: CityStateZip = [[Field("City"),Field("State")].filter(String).join(" "),Field("Zip")].filter(String).join(" "); myFullName = [Field("First Name"),Field("Last Name")].filter(String).join(" "); return [myFullName,Field("Company"),Field("Mailing Address Line 1"),Field("Mailing Address Line 2"),CityStateZip].filter(String).join("\n").toUpperCase(); If one of the fields is blank, it is removed from the array by the filter.
  3. Bump! I am also trying to place a template inside a table, and FusionPro crashes. Is this possible?
  4. Hello, I have an imposition question. My 18"x12" press sheet holds 4-up of a 6.5"x4.5" piece using FusionPro Imposer. However, there is room for 5-up if the 5th piece is rotated on the press sheet. Is there any way to accomplish this? Please see the screenshot attached illustrating the 5th rotated piece in yellow that I would like to add. Thank you
  5. Thanks. I may have turned on the "Create bookmark for each record" setting by accident. If the bookmarks have names like "vPDF Page 1" in the future I will check that setting. Attached is my latest sample in a collected zip, and the output PDF it composed. Still experiencing the same issues with incorrect bookmarks and incorrect TOC page numbers unfortunately. SampleTOC.zip output1.pdf
  6. Update: Uninstalled FusionPro 9.3.21, and installed 9.3.36 (last version before 10). Tried composing the sample that step provided. Same issues persist.
  7. You could make a vector graphic of the signature using tracing options in Illustrator. Then it is scalable and crisp. Here are some instructions. http://graphicdesign.stackexchange.com/a/25168
  8. Unfortunately for me, this could be a Windows version bug. Noticed you are running on a Mac. I see the sample output you provided, and it is perfect. However, running the template you provided, my resulting PDF still has issues. I only replaced the Helvetica Neue font with Arial, and changed the output file destination. The PDF I composed from your template had the same TOC issue, plus for some unknown reason a bookmark was created for every page with a label like "vPDF Page 1". See my output file from your template, attached. I actually ran into this same issue with a bookmark for every page and labels like this earlier in my troubleshooting. I tried running your template on my computer, and on my coworker's computer, both with the same results. Thanks again for the advice and uploading a sample template, unfortunately the issues persist on the Windows computers here. Seems like this solution could work for others though. As a workaround, I have added table tags through the variable text editor. I place a start table tag before the title, and a stop table tag after the first line of text that follows a subtitle. The spacing between the last line of text inside table and the first line outside the table is a little off though. Rule for start table tag var myTable = ""; // Uncomment the boxrules and cellrules to see the table borders during development. myTable += '<table columns="1" margins="top:0;bottom:1;left:0;right:0;" space="above:0;below:0" ' + //'BoxRules="top:thin,black;bottom:thin,black;Left:thin,black;Right:thin,black" ' + //'cellrules="top:thin,black;bottom:thin,black;Left:thin,black;Right:thin,black"' + '>'; myTable += '<column width="54000">'; myTable += '<row><cell>'; return myTable; Rule for stop table tag return "</table>"; DeveloperRunningSteps1.pdf
  9. Step, thank you for the suggestion. I tried it just now. However, the issue persists. Did it work on your setup? I am going to try placing the title-blank-subtitle-firstpara block inside a single table cell to see if that fixes it, and will report back.
  10. The NullResource() FusionPro function should clear the error message that says "This graphic rule must return a Resource of type graphic.". It returns an empty graphic or text resource. return IsPreview() ? Resource("PreviewBlack") : NullResource();
  11. Here is a possible workaround for your issue. Rather than place the graphic in a graphic frame, make it a static part of the PDF background. Then, in your Composition Settings dialog, go to the Graphics tab, and check the box that says "Suppress static PDF background in composition". Then the graphic will appear when the end user views a proof, and will be suppressed in the composed file that goes to press. At least, that is how it behaves with the WebCRD Dynamics web-to-print system, I'm hoping that MarcomCentral is similar. I once had a situation where preprinted shells were being used for the front cover of a booklet. The FusionPro preview output that the end user saw needed to have the cover graphics showing, but the composed PDF that went to press had to have the cover be just plain white with only the variable text showing. This workaround did the trick.
  12. Hi All, The "Keep with next paragraph" setting seems to be conflicting with my linked table of contents and PDF bookmarks. Hoping someone may have some insight as to what is causing the issue. I'm trying to create a PDF document with a linked table of contents and bookmarks. I'm using pretty much the same code that step provided in thread 4351, which has worked well in the past, so off to a good start. The body of the FusionPro template contains section titles, followed by a blank line, followed by a section subtitle, followed by a sentence or paragraph. I'd like to keep the title, blank line, subtitle, and first paragraph following the subtitle together. The issue occurs when the kept together title-blank-subtitle-firstpara block falls on a page break. In the composed output it looks fine, and is pushed to the next page and kept together. But the page numbers and links in the table of contents are off, they point to the preceding page. And two bookmarks for that section are added, one that points to the incorrect preceding page, and one that points to the correct page. Turning the Keep with next paragraph setting Off resolves the issue with TOC and Bookmarks, but then the title-blank-subtitle-firstpara block falls apart on page breaks. I've attached a collected sample job that illustrates the issue well, and two composed PDF output files, one with Keep with next paragraph (KWNP) On, the other with KWNP Off, so you can see what happens to the bookmarks and table of contents. The sample job is static, but the real job is variable length, so I cannot simply adjust the spacing to not fall on a page break. Thank you in advance for any help! SampleTOC.zip Output-KWNP-On1.pdf Output-KWNP-Off1.pdf
  13. Another idea, to tighten up the space between the $ and the 1, you could put the $ in a separate text frame. Position the new text frame with the $ right next to the 1, as close as you want it. For records where there should be a cents sign instead of a dollar sign, turn off the $ in that frame, have a rule that returns "" (empty quotes) instead of a dollar sign.
  14. You could try cropping the area around the word "off" in your static sample. See attached. Then insert the word "off" in your variable text editor as a graphic, using a text rule with a graphic tag linked to an "off.pdf" file or resource. Something like this: return '<graphic file="C:\\Off.pdf">'; Off.pdf
  15. Thank you for the thorough response! I read it the same day it was posted, but forgot to reply with a thank you until now. I love the forum, I learn so much here! The approach you outlined that does not require "Treat returned strings as tagged markup" to be checked works great! This is now my standard way of uppercasing lines in an address block. That FusionPro uses the lower ASCII character space for its own functions makes sense to me now, especially since they would be going unused otherwise. Following your advice, I searched for the table of entities in the FusionPro Tags Reference Guide, but couldn't find it. I also searched the other two help guides and couldn't find it. I do remember seeing this table in a previous version of FusionPro documentation, perhaps it was removed? I did find a note to look at the "entity.def" file in the installation directory and found the following definitions there. Looks like character 19 is an "En" space. Good to know!   18 // thin space 1/6 of em space   19 // en space 1/2 of em space   20 // em space Thanks again!
  16. Hi Dan, thank you for your reply! Please allow me to explain the situation I encountered. Basically, regular expressions do not recognize the character 19 entity as a space. My objective was to format the first line of an address block for a mailing. There were 3 fields separated by spaces on the first line: FirstName, MiddleInitial, and LastName. When MiddleInitial was blank, a regular expression would delete the extra space between FirstName and LastName. However, the regular expression did not recognize the character 19 entity as a space, and therefore did not remove the extra space. My original code looked like this: myNameA = TaggedTextFromRaw(Field("FirstName") + ' ' + Field("MiddleInitial") + ' ' + Field("LastName")); myNameB = '<uppercase>' + myNameA.replace(/ /g, " ") + '</uppercase>'; return myNameB; Thankfully, in the time since I posted, I found multiple workarounds to the problem. Here is my new code: myNameArray = [Field("FirstName"),Field("MiddleInitial"),Field("LastName")]; myNameSpaced = myNameArray.filter(Boolean).join(" "); myName = '<uppercase>' + TaggedTextFromRaw(myNameSpaced) + '</uppercase>'; return myName; Another workaround is to use an if-then statement to check if MiddleInitial is blank, and then use 1 or 2 spaces accordingly. A third workaround is to change the order of operations by taking 3 separate TaggedTextFromRaw functions and joining them with spaces, then running the result through the regular expression. When I researched the character 19 entity, it appeared to be a device control character (http://unicode-table.com/en/0013/), so I thought this feature was a bug. FusionPro does render the entity in my document as a space. Thank you for explaining how FusionPro handles the character 19 entity! Also, I did not realize that consecutive spaces would collapse into a single space when the "Treat returned strings as tagged text" option is set. That is definitely good to know! I will use the character 19 entity where multiple spaces are required in tagged text rules going forward.
  17. Hello fellow forum users! I am having trouble with the TaggedTextFromRaw function turning extra spaces into the device control 3 character. The device control 3 character is also the HTML entity &-#19; (hyphen added, otherwise I cannot type the entity in the forum post even with the code or html tag). The issue only happens when there are 2 or more adjacent spaces in a text string. Is this a bug with the TaggedTextFromRaw function? Are any workarounds available to return spaces instead of the DC3 character entity? Thank you in advance if anyone can help with this! Screen shot and example code attached. DC3.txt
  18. Hello everyone, if you are still watching this thread! Recently, I ran into the same issue. Fillable form fields are stripped out of the composed PDF. I am currently running FusionPro version 8.2.7. I contacted support, and here is what I learned. FusionPro version 9.1.0 (released on June 27 2013) and newer will retain form fields and annotations from template and PDF images. Next month I am upgrading to a newer 9.x version of FusionPro, can't wait to test this out!
  19. Yes! I tested, and can confirm that bookmarks jump to the correct page number, even when turning pages on and off with SetBodyPageUsage. This is a great relief. Although hypertext will not work in the table of contents (in this particular scenario), bookmarks will compensate for some of the lost functionality. Thank you for the updated sample code as well!
  20. Step, I really appreciate your detailed response and example. I have been experimenting with it all day. The table of contents object constructor is genius! It makes managing the table of contents much easier. For this particular document, I cannot think of any way around turning pages on and off before the table of contents and throughout the content area. Mainly because the main document this sample was derived from has some pages that are different sizes and have different portrait / landscape orientations, so I cannot accommodate them all with a single body and overflow page. For example, there are 9x11" divider tab pages that can be toggled on and off, mixed in with regular 8.5x11" pages. From what I understand now, I will not be able to use hypertext and destination tags for clickable links in the table of contents due to incompatibilities with SetBodyPageUsage turning pages off. On the positive side, I noticed that when I rearrange the pages in the example you provided, the hypertext links jump to the wrong pages, but the page numbers in the table of contents are correct! So I will be able to use the crossref and destination tags for correct page numbers in the table of contents, they will just not be clickable links. I will try adding PDF bookmarks through FusionPro to this document as well, and report back if they work and jump to the correct pages.
  21. Would using FusionPro layers work in your situation? The following instructions were taken from page 247 (or PDF page 259) of the FusionPro User Guide, I just changed the wording a little. In Acrobat, draw a text frame on the page. Draw a graphic frame on the page, with part of the frame overlapping the text frame. Using the Selection tool, double-click the graphic frame to display the Graphic Frame Properties dialog box. Select the Text Wrap check box. This tells FusionPro that the text will wrap around the contents of this frame. (I always have a hard time finding the Text Wrap check box. It is right between the Rotation and the Corner Radius settings on the Graphic Frame Properties dialog box.) If you need the text to follow the slope of the mountain, you could first create a graphic frame with the mountain and Text Wrap turned off. Then create smaller empty graphic frames directly over the mountain, following the shape of the mountain, that have Text Wrap turned on. With this method, you would not need to use linked text boxes, just one big text box that wraps its contents around the graphic boxes.
  22. Hello, I am attempting to create a document with a linked table of contents. There are two issues I am encountering. The page number is not displaying on the composed output. The hypertext link, when clicked, is not jumping to the correct destination page. Please see the attached example. Here is the code I am using for the table of contents on body page 4: myContent = ""; myContent += "Table of Contents"; myContent += '<P><P><hypertext name="TestDest"><crossref name="TestDest">'; myContent += 'Overview Section..........<$pagenum></crossref></hypertext>'; return myContent; And here is the code for the destination on body page 5: return '<destination name="TestDest">My Test Destination'; There are other FusionPro features active in this template that may be conflicting with the linked table of contents. The first 3 pages of the document are turned off through SetBodyPageUsage in the OnRecordStart rule at composition time. Also, pages from another PDF are pulled into the document using FPRepeatableComponent and overflow pages. The rules that create the FPRepeatableComponent are in the JavaScript Globals section. Are there any known limitations when using SetBodyPageUsage, FPRepeatableComponent, hypertext, and crossref page numbers all in the same document? The sample I uploaded is based on a larger document with many sections that turn on and off, and many places for user provided PDF files to be pulled into the document through template pages. I am hoping to find a solution that works with these features. One last note, I am incredibly grateful for all the users who have posted questions and answers in the past! You will find sections of code in the sample I uploaded that were previously posted in many different forum topics. I couldn't have gotten this far without the accumulated knowledge of the forums. The documentation provided with FusionPro has been very helpful as well. Any help getting all of these features to work together would be greatly appreciated! TOC_Test.zip
  23. I did some testing, and it appears in FusionPro 8.2.7 the width parameter of the CopyfitLine function should be in points, not hundredths of points. Here is an example using the FindTextFrame and GetSettableTextWidth functions that Dan suggested. The GetSettableTextWidth function returns the width in hundredths of points, so I divided by 100 to get points. I also included a span tag to keep any text following this line at its normal size. Make sure to have "Re-evaluate this rule for every text flow" and "Treat returned strings as tagged text" in the rule editor checked. myWidth = GetSettableTextWidth(FindTextFrame(FusionPro.Composition.CurrentFlow.name)) / 100; return "<span accumulate=false>" + CopyfitLine("",Field("Email") + "@mycompany.com","Arial","7",myWidth,"1",false) + "</span>";
×
×
  • Create New...