FlexPrintJob results impression of lack of large blocks of text

Hi all

I use FlexPrintJob to generate the output of a Flex application.  I am allowing the user to print the "thank you" to our application.  Here's the code that fires when the user clicks on the 'Print' button in my application:

var printer:FlexPrintJob = new FlexPrintJob();
printer.printAsBitmap = false;
// Display the print dialog to the user.  If they choose a printer
// and click "print", this method will return true, and we will
// spool the job to the printer they selected. If they hit cancel,
// this method will return false, and we will not attempt to send
// anything to the printer.
if(printer.start()){
     printer.addObject(itemsToPrintContainer);
     printer.send();
}

itemsToPrintContainer is the text quite heavy and contains all the information the user has entered so far, as well as some 'fine print' with permission from our legal department :-)  Depending on the options that the user selected and how much they typed, this will take place between 1.25 and a two pages of printing output (printing of 8.5 "x 11" paper with a 1 "top, bottom, and side margin").

Something very strange is happening, however.  Only the first two-thirds of the text are printed.  All the text after that Miss, even if it is present in the view.  In addition, the horizontal rules between different blocks of text are present and are spaced appropriately.  For example, if there is a long block of text is missing, the space between the horizontal rules is exactly appropriate to adapt to this long block of text, even if it is not displayed.  Similarly, when there is some missing text blocks, the space between the horizontal rules should be to adapt to this block of text.

Horizontal rules are a simple component, I created to draw a horizontal line.  Looks like this:

     <s:stroke>
          <s:SolidColorStroke color="{color}" weight="{weight}" alpha="{ruleAlpha}"/>
     </s:stroke>

After a few experiences, I discovered what is printed has something to do with what is visible in the display window.  The object, I am trying to print is in a scrolling window, and print which is close to the same height which is visible in the display window.  If I resize the window to make the box smaller visible, the amount of text that prints becomes smaller.  However, what is not print exactly what is in the window - I'm sure it's related somehow, because the amount of visible text (measured vertically) is systematically related to the size of the viewport.  But it isn't exactly the same thing.  Sometimes there is something visible in the viewport on the screen that does not appear in the printed output, and vice versa.  But what print changes when you scroll the window down.

Any suggestions?  How can I get to print the object itemsToPrintContainer together with all text, regardless of what is currently visible on the screen?

Why would it need to be in a scroller at the time you send the print job?

Flash is a deferred rendering engine.  You can manipulate the display list, present

the page and restore the display list, and the user will not see it.

Or clone the page somewhere, print and delete the clone.

Tags: Flex

Similar Questions

  • Add style to large block of text without affecting existing styles within this text

    Hello! First post here.

    I have a long text document which for the most part, has no attached text styles (it was a mistake). However, there are a large number of stylized breast text boxes.

    Is there a way to select all of the text and apply a style to the text without style without affecting the existing styles?

    Doing so by hand by text block text block would take a very long time.

    Any help is greatly appreciated.

    THX!

    Ian

    What do you mean by "text without style? There must be a definition, anyway.

    Like others, [no paragraph Style] and [standard paragraph] are available, too.

  • Vista Shrink volume resulted in 75 lack space volume and 0 GB unallocated space. No possibility of partition. Lost space.

    I wanted to create a partition on a 150 GB internal hard drive. It is NOT the boot drive, it's the drive D. I got more than half the volume free and retractable Vista specific volume I could use up to 90 GB. I selected 75GB for the shrink.  After the SHRINK, it resulted in 75 lack volume and space 0 GB unallocated space for the partition. Volume shrinkage has returned an error and did not provide additional instructions. Unfortunately, I don't have the error message as I deleted it by mistake. It was a small error message in Shrink.

    VISTA 32-bit, updates to update... I just downloaded EASEUS Partition Master and it shows I have 150 GB of total space, unused and 0 free 90 not allocated. Looks like the problem doesn't show in the view "Properties..." (75 GB of total space, 15 GB free unused).  I don't know what the file system will be used to allocate new space. I think I'll try to copy a large file and see which uses the file system...

    When I look at the following:
    Computer management, storage,... disk management it says I have: Simple, Basic, disk 1, disk Local (d) 150 GB, NTFS, healthy (Primary Partition). (NO unallocated space appears on this menu)

    When I look at the properties of the D: drive:
    Local disk (d :)) 75 GB of capacity.

    I just lost 75 GB! Help...

    I don't know what happened. Shrink did not partition instructions... The space is lost forever?

    When you shrink a volume you create unallocated space which should appear in computer management - I don't know why it is not appear on your system.

    Maybe you can try to expand the volume to find the size of the original score (although it will wipe the data that is on the drive): http://www.howtogeek.com/howto/windows-vista/resize-a-partition-for-free-in-windows-vista/. (but I doubt it will work because there is no contiguous unallocated space appear).

    Here is another article on how to shrink and expland a partition under Vista.  Perhaps by reading the instructions for the narrowing, you will notice something did you not (or has done, but shouldn't have).  Otherwise, extend the partition could reclaim your lost space.  http://www.bleepingcomputer.com/tutorials/tutorial133.html.  Yet once again, because there is no unallocated space appear, I don't know if it will work (in fact, I don't think it will be).

    My best suggestion is to temporarily store the data on the disk also narrowed and then format the drive.  This should bring back to his full 150 GB and then you can try it again narrows (if you are still interested in this).

    I hope this helps.

    Good luck! Lorien - a - MCSE/MCSA/network + / A +.

  • Alert to variation of Muse - block of text - not supported

    Hello

    I just changed the text on my website to Verdana web fonts Dosis, which I installed it. DOSE does not have an italic version, which is fine. But wherever I used Verdana italic earlier and preview in a browser, I now get a warning will appear indicating, for instances of 36:

    «Block of text on the "Home" page uses a variation unsupported "italic" from edge Web font named "Dosis medium".» Italics will be simulated. »

    Seen in the browser these words that had already been put in italics when I used Verdana are now italicized in the dose in the browser. I do not see the warning (x 36) whenever I saw in the browser. I want especially to ensure that this do not cause any problems when I'm done with my design and publish it.

    Please notify.

    The italic shape of Dosis you see in the browser is a false "italics" artificially simulated by the browser sloping forms of the letters. This usually results in an unnatural feel compared to a true italic, but if you are satisfied with the appearance, feel free to use it; It will not have any other "problems." However, there is no way to silence warnings from the time of export, if you decide to go with the fake italics.

    Abhishek

  • Breakpoint - not able to move the block of text at a breakpoint

    Adobe 2015.1.0.2309 Muse.

    I have a few breakpoints set on my page. When I jump to one of them my expectation is that I'll be able to format the page for this breakpoint.

    I want to move a block of text right of a picture to a picture below when I get to a certain page width. If I click on the breakpoint for the width of the page, but when I hover over the text block I have an icon that says 'Click to go straight at the stop'. When I rubbed it in my larger page break.

    Starting point:

    b01.JPG

    I want to move the text under the image block when I'm about to stop 750, so I post the width of the page at 750. However when I place the mouse on the text block I just get the message "click to go directly at the breakpoint.

    b02.JPG

    If I click on the Muse goes back to as in the first photo.

    How can I actually select me the text block, so I can re - position?

    Hello

    Screen captures, it seems that you have created the breakpoints on the master page. Master page breakpoints do not automatically carry over ordinary pages; You must explicitly create (click on the white triangle on the breakpoint bar to go to the location of the main breakpoint and then click on the button '+'). Once you have a breakpoint on the regular page, you will be able to replace the text block as you wish.

    I hope this helps.

    Abhishek

  • I can auto adjust all the blocks of text with overset text?

    Due to several factors (change computers, versions of different fonts, etc.), I had to change most of the fonts in my text-heavy document.

    There are a lot of charts and tables in this 125-page document, and now most of all text frames have overset text.

    The new font is in fact identical to the previous one, however, there are a few differences that are causing it take more text frames. I tried to adjust the line spacing in my character and paragraph styles, but these do not seem to effect.

    Is there a way to automatically adjust all frames in excess to account for the new font?

    Thanks in advance.

    Not sure that the result will be 100% desirable, but there is a way to define all frames to auto-size...

    Run find/replace and choose the tab object.

    Down, choose the Document research: menu. Choose the blocks of text such as: menu.

    Click the icon of glass/frame next to the search Object Format field:

    In the Options of Format object search dialog box, choose Auto setting 'Off' on the text size Options > menu automatic sizing:

    Click OK, and then click the icon / window next to the subject of change Format field:

    In the change object Format Options dialog box, choose 'Height' only on the text size Options framework Auto > auto-size menu, and then click the up button in the Center in the framework - pinning proxy:

    Note: Another option for pinning would be better according to your presentations, but this setting will make executives grow at the bottom, which seems the most logical... in most cases.

    Click OK, and then change all.

  • Adding pages and blocks of text to emulate the behavior of "Smart Text Reflow"

    I create a large number of tables in a document.  If I'm Smart Text reflow on, my script is malfunctioning.  I have the start of treatment:

    1. Add a new table

    2. If the last block of text of page overflowing and then add a new page

    With smartTextReflow off, I want to assure that the executives of new blocks of text which corresponding to the main text of the page master.  It must be able to manage to get the settings from the page of left/right text block.

    I have solved my problem.  I was overthinking things!

    Given that I have selected blocks of text on master pages as the main text blocks, when you create a new page, a block of text is automatically created. So the problem is then simply connect the block preceding text for the text block that was created when the page is added.

    TableAutomation.prototype.AddPage = function() {
         var previousTextFrame = app.activeDocument.pages[-2].textFrames[0];
         var np = app.activeDocument.pages.add();
         var textFrame = np.textFrames[0];
         previousTextFrame.nextTextFrame = textFrame;
    };
    

    The cost of the above code was about 5 hours of banging my head against the wall

  • InDesign: how tilt blocks of text without distorting the text?

    I want to put in place several large blocks of copy to these requirements:

    -the basic lines of the text are at an angle on the page

    -the left and right edges of the text block are shot-on horizontal (aligned with the guides in the screenshot below)

    -the block of text can be enlarged or reduced without changing the angle of the left and right edges

    -forms of the letters themselves are not distorted

    Skew1.gif

    This screenshot shows what I'm after.

    Skew2.gif

    This screenshot shows the real bounding box for the text block.

    Skew3.gif

    This screenshot shows how the angle of the text box changes when I change its size.

    I think Illustrator is a kind of function that allows you to "zero" (reset the transformations of a grid of 90 degrees) an object after it is transformed. Not finding anything like that in InDesign. And I find no way to set a custom angle constraint that would allow me to use the direct Selection (white arrow) tool to change the height or width with confidence.

    I'd appreciate some tips! Thank you for your attention.

    I do so with the example of shooting. Tilt works the same way.

    1. draw your rectangle, I applied a text frame reference grid (textframe options)

    2. with the Selection tool or the transform tool turn the frame in one direction, you can also do this with the entrance of the value in the transform Panel, what I would recommend.

    3. now, select the direct Selection (white arrow) tool and hold the ALT key and click on the frame. Now, only the frame is selected. Turn the other way, or insert the value in the transform Panel.

    I also have another method to offer:

    1. Draw the main frame with the text tool.
    2. Draw a small box above, it must be much smaller than the main frame.
    3. Turn the small frame in the direction that where you want to go the text.
    4. Select the two images.
    5. Go to the Pathfinder > Add.

    Now, you can add text or select a text based frame reference grid. He will do the same as above. May be simpler.

  • How can I create a series of blocks of text using the Excel list values?

    It is first of all, the first script I am trying to write from scratch. I'm completely green at the script and I picked up a few bits of ID Adobe scripting guide, but nothing has really stuck still relating to this particular goal.

    My supervisor maintains a master list of advertising space, with the name of the account, is the width of the space, and how space is the height, in an Excel sheet. These spaces can number in the hundreds, and I'm stuck manually drawing a rectangle for each space, which takes a lot of time.

    I would like to create / helped to create a script that will take these values and "magically" to draw these spaces in the form of blocks of text, with the width (in columns) and the height (in inches) defined by the values in the main list, as well as the name of each account in the subsequent text frames.

    The script didn't necessarily need to be able to pull the values directly from the Excel sheet; Can I transfer a file text if necessary, or directly in the script, values he change because I need it. A great thing (if she is not able to pull directly from an Excel sheet) which is the number of spaces a week changes, and so do the accounts and the width and height. Accordingly, it would be ideal that values of the sheet could be modified easily, in order to create a new set of spaces as necessary.

    Positioning for each space is not crucial, only the height and width. If they were all on top of each other on the same page, it is a result for me. The main idea is to not have to draw them all manually, one by one.

    For me, this looks like a command, but I hope that some experienced there Scripting Guys can help me, because I want to become experienced as well.

    Thus, the TL; DR version:

    -Script to draw a series of text blocks.

    -Size of the text boxes should be defined by the values width and height of spreadsheet Excel.

    -Text blocks must have the account name as content (from account in the Excel worksheet names).

    -Accounts, width and height changes every week in the Excel sheet, so must be relatively easy to exchange all values.

    -Width values on the Excel worksheet columns. It would be ideal that the script could turn those numbers into multiples of columns as necessary.

    -Script (optionally) can take values directly from Excel sheet.

    -Script (option) can set the fill color for the gray text frame. (If it works as I think, I could just select all the resulting images of the text myself and put them all to grey at the same time... I'm not lazy as )

    Thanks in advance to anyone who can help in any way possible, even if it's just a little push in the right direction. This script will save 1 to 2 hours of boredom every week.

    Look like the perfect thing for the InDesign scripting.

    I copy content from Excel to a text file, for a format easily read in InDesign, and there will automatically be a TAB for each 'cell', just using copy and paste.

    Here is a piece of code, perhaps you could go on with (the addition of variable to change pages and the location on the page and other things).

    The readFileLineByLine function, can be easily reused with any function using "recall". You simply tell the function what you want to be executed for each line of text that reads:

    const COLUMN_WIDTH = 2; // Define the column width in inch
    
    var pageIndex;
    var textFramesExported; // not implemented.
    
    // Add a new dokument. Set myDoc to app.activeDocument to use
    // the current document instead of creating a new one.
    var myDoc = app.documents.add();
    
    // The doSomethingWithTextRow function is called upon for every line of text read.
    readFileLineByLine('c:\\test.txt', doSomethingWithTextRow);
    
    function doSomethingWithTextRow(row){
        // We expect the text line to be TAB separated (\t = TAB). We get that from just copying the contents of an
        // excel file into a text document.
        var cells = row.split('\t');
        var companyName = cells[0]; // The Company name in the first slot of the array
        var width = COLUMN_WIDTH * cells[1];
        var height = cells[2];
    
        // Create a new text frame for every row handled
        if (pageIndex==undefined) pageIndex = 0; // Count up when you have exported a number of texts, I leave this for you to do.
        var newTextFrame = myDoc.pages[pageIndex].textFrames.add();
        newTextFrame.contents = companyName;
    
        // The text frame is created in the top left corner.
        newTextFrame.geometricBounds = [0, 0, height + ' in', width + ' in']; // Top, Left, Bottom, Right 
    
        // You might want to move the textframes to other positions, keeping track of how many you put out per page.
        newTextFrame.move( [10, 10] );
    }
    
    function readFileLineByLine(path, callbackFn){
        var myFileIn = new File(path);
        if (File.fs == 'Windows'){
            // This was probably added to recognize UTF-8 (even without its start marker?)
            myFileIn.encoding = 'UTF-8';
        }
        myFileIn.open('r');
        var myEncoding = myFileIn.encoding;
        try{
            if (!myFileIn.exists){
                throw('Missing file: ' + myFileIn.fsName)
            }
            var ln = '';
            while(!myFileIn.eof){
                // Read the lines from the file, until an empty line is found [now as a remark].
                ln = myFileIn.readln()
                // if(ln !='' && ln!='\n'){
                   // Call the function supplied as argument
                   callbackFn(ln);
                // }
            }
        }catch(e){
            alert(e);
            gCancel = true;
        }
        finally{
            myFileIn.close();
        }
    }
    

    The file in C:\ in my example was recorded in UTF-8 format and looks like this (showing hidden characters):

    Post edited by: Andreas Jansson

  • creating a table of blocks of text [AS2]

    Hello

    I want to create a table of text blocks.

    The code I use is.

    for (c=0; c<5; c++) {
        tf = ("test_txt"+c.toString());
        this.createTextField(tf, 10, c*20, 80, 40, 20);
    }
    
    a = [test_txt0, test_txt1, test_txt2, test_txt3, test_txt4];
    
    for (c=0; c<5; c++) {
        a[c].text = "foo " + c.toString();
        a[c].border = true;
        a[c].borderColor = 0x00FF00;
        a[c].textColor = 0x0000FF;
        a[c].size = 24;
    }
    

    The result I want from the code is 5 spead of frames of text on the stage, but only the last block of text is created.

    Untitled-4.png

    What is the right way to create the frames in a loop and then having accsesible in a table?

    Thanks in advance

    Trevor

    The second argument of the createTextField method is the depth.  If you keep by specifying the same depth, you replace whatever you place there whenever you assign to something new at this depth.

  • How place a document that requires a block of text to span several pages?

    I'm working on an information folder and have a word doc that contains 3 or 4 pages of text I want to merge my flyer. No matter what I try, when the use of Place (command-B), I can't get the text block resulting automatically create pages as needed. I checked n the option of 'Smart Text reflow' preferences and unchecked option "limit of main text Frames". Deparation, I even created an empty text block, turned on the Auto for this image and copied sizing the command + V) text in, but he did not better. I would prefer not to have to divide the text into chunnks and put it in blocks of text separated on each subsequent page. Any ideas?

    I use CS6 on a new MacBook Pro running OS X Lion mountain with 16 GB of RAM.

    When you place the text, hold down the SHIFT key when you click on the page.

    Bob

  • Importing a large amount of text in InDesign (Newbie question)!

    Hi all

    I'm new to InDesign and would appreciate some advice/tips on the best way to transfer a large amount of text from Microsoft Word into an InDesign document. I was tasked to create a very simple pocket-sized book, whose content will be a series of business acronyms (700 +) and their definitions (imagine a very simple dictionary). As you can imagine there are a lot of text in the Microsoft Word document, so any advice on how to transfer everything as quickly as possible would be really useful. Or, where appropriate, it would be easier to use another program?

    Can you paste/import all - or chunks-a document word at once? If I format a master page will be Adobe InDesign paste the text in the number of pages required? Or do I have to do it page by page in a Clipboard?

    Of course, I don't expect InDesign to format the text perfectly on every page, I want to just throw everything at once and then go back and he put all this.

    Any help or advice would be greatly appreciated.

    Concerning

    Matthew

    File > Place... and navigate to the Word file. Show Import Options to allow you to preserve the formatting of Word, or throw, or card styles styles in your document of identity.

    If you have a block of text on your master page, place the cursor loaded above the area of the image on your document page and watch for the cursor change if it is surrounded by parentheses, then hold down the SHIFT key and click. If you do not have a Master frame (and more experienced users will tell you that more than 90% of the time a block of text type is more hindrence than help if you set your margins correctly), hold down the SHIFT key and click where you want the top of the first column to get started.

    In both cases, ID will add pages as necessary to place the entire document and thread text across all frames. If using frames of masters, they will be linked and overrridden on the page of document automatically, otherwise, your first image will begin where you click and extend to the bottom margin and succeeding frames will fill the column guides (so talk to your margins correctly).

    ID is a professional software and you really need to spend time to learn how it works. A good starting point is the help files. Another is Visual QuickStart Guide of Sandee Cohen of InDesign. If you prefer video training, Lynda.com has good content.

  • Overset text when you create a block of text to another object

    I apologize if this has been answered in other discussions, but the search function does not work now. I am trying to create a block of text on top a .pdf bound. I can create the block of text, but as soon as I enter the text, I get the text marker in excess on the frame, despite the fact that the frame is big enough to accommodate the text that I entered. This happens if I simply enter a single period.

    If I click on "mount the frame to the content" he develops vertically the text block until it is large enough to have a part that leaves at the edge of the linked .pdf below, and the text that I entered appears here. Of course, now, I have a block of text that is 20 times bigger that I need, and I still have no text in the position where it is needed.

    Here is a link to a screenshot:

    http://Tinypic.com/r/i3vqjs/7

    I'm still a newb on InDesign, and I hope that there is an easy solution to embarassingly on this point I should have, but any help is appreciated.

    Thank you

    You probably dressing applied on the structure with the PDF file. Either remove it, or open the options of text block for your frame on top and check the box to ignore the dressing.

  • Jump in history in a block of text?

    Is there a way to create a break in the story in a single text block? I'm working on a catalog, and we will use XML auto filling of commodity prices. Most of the products are in their own text frame with their name and their description. Some items, however, only appear under headings such as different sizes of the same product, but they have unique part numbers. The problem is that indesign requires that the history be labelled. Normally that's perfectly fine, and the story just a label of the product number. But I have problems with several numbers in a block of text. I can just create another name for the label of the story and then use the part number as a tag parent for all line items, but when we got to export the data from the spreadsheet that we won't know what products willl need this extra label. The only work arounds I can think is to separate text box for each line (who will be formatting of pain because now I have to make sure all are aligned) or I can link all the text frames in the catalog section, so it's a story... everything also a nightmare to put in shape. Is there another way that I don't know everything? I'm pretty new to InDesign, so I hope that there is an easy way to do what I want.

    I hope that makes sense... I'd appreciate any help.

    By definition, a story is all the text in a single frame, or set of threaded frames, so what you want to do is impossible. You may be able to anchor two stories like inline frames in a larger text block, but this doesn't make much sense to me - if yo have to get the text that you might as well stop there.

  • Select the block of text to items found

    Hi experts

    Here I find etc using the character style. I found myself results. Now, what is my need I want to select the block of text for the element found.

    app.findPreferences = NothingEnum.nothing;
    app.changePreferences = NothingEnum.nothing;

    app.findPreferences.appliedCharacterStyle = "FigCallout";

    var myResults = app.activeDocument.search ();

    for (i = myResults.length - 1; i > = 0; i--)
    {
    Select the block of text where myResults [i]

    }

    I use CS2 Windows.

    Thanks in advance

    concerning

    a you are the

    Memory: .parentTextFrame myResults [i]?

Maybe you are looking for