Strange Spacing

Dear All,
I am having a single para of around 200,000 characters. When it got displayed in the Adobe Digital Edition, the para getting split in last but one page and displaying huge space in the content. Based on the screen size the content is getting split in different places but in the last but one page.
Please clarify is there any character limit is there in <p> and how to rectify this problem.
Regards,
Ganesh

Can you upload the project? I would like to have a look inside...

Similar Messages

  • Very strange spacing when printing a JTextArea

    I am trying to print text from a JTextArea and am having a very hard time at it. I am using a print utility which takes the component itself to be printed.
    For instance:
    If my JTextArea contains the text:
    "Item: Large Caffe Mocha"
    The printer will spit out something like:
    "Item: Lar ge Caf f e Mocha"
    Does anyone have any idea what is happening here?
    Code is as follows:
    public class PrintUtilities implements Printable {
      private Component componentToBePrinted;
      private boolean interactive;
      public static void printComponent(Component c, boolean interactive) {
        new PrintUtilities(c, interactive).print();
      public PrintUtilities(Component componentToBePrinted, boolean dialog) {
        this.componentToBePrinted = componentToBePrinted;
        interactive = dialog;
      public void print() {
        PrinterJob printJob = PrinterJob.getPrinterJob();
        printJob.setPrintable(this);
        if (printJob.printDialog())
          try {
            System.out.println("Calling PrintJob.print()");
            printJob.print();
            System.out.println("End PrintJob.print()");
          catch (PrinterException pe) {
            System.out.println("Error printing: " + pe);
      public int print(Graphics g, PageFormat pf, int pageIndex) {
        int response = NO_SUCH_PAGE;
        Graphics2D g2 = (Graphics2D) g;
        Dimension d = componentToBePrinted.getSize(); //get size of document
        double panelWidth = d.width; //width in pixels
        double panelHeight = d.height; //height in pixels
        double pageHeight = pf.getImageableHeight(); //height of printer page
        double pageWidth = pf.getImageableWidth(); //width of printer page
        double scale = pageWidth / panelWidth;
        int totalNumPages = (int) Math.ceil(scale * panelHeight / pageHeight);
        //  make sure not print empty pages
        if (pageIndex >= totalNumPages) {
          response = NO_SUCH_PAGE;
        else {
          //  shift Graphic to line up with beginning of print-imageable region
          g2.translate(pf.getImageableX(), pf.getImageableY());
          //  shift Graphic to line up with beginning of next page to print
          g2.translate(0f, -pageIndex * pageHeight);
          //  scale the page so the width fits...
          g2.scale(scale, scale);
          componentToBePrinted.paint(g2); //repaint the page for printing
          response = Printable.PAGE_EXISTS;
        return response;
    }I am calling it as follows:
    JTextArea area = new JTextArea("Large Caffe Mocha");
    area.setRows(20);
    area.setColumns(75);
    area.setLineWrap(true);
    JScrollPane pane = new JScrollPane(area);
    printReceipt(area);
    public void printReceipt(Component componentToBePrinted)
            PrintUtilities.printComponent(componentToBePrinted); 
    }Thanks for any assistance with this problem. It is elluding me..

    public static void printComponent(Component c, boolean interactive) {
    new PrintUtilities(c, interactive).print();
    printReceipt(area);
    public void printReceipt(Component componentToBePrinted)
    PrintUtilities.printComponent(componentToBePrinted); 
    }I'm sure that this is not causing the issue and am also surprised that the compiler didn't complain, but your call to PrintUtilites.printComponent() doesn't sync up with the function you are calling. You are sending only one parameter (componentToBePrinted) and the printComponent() function is expecting two parameters: the component to be printed and a boolean value. In the code that you posted, you only had the one printComponent() function listed, with no alternative function that only accepts the component to be printed.
    Having pointed this out, I'm not sure as to what is causing the issue, except that it may have something to do with your code:
    //  scale the page so the width fits...
    g2.scale(scale, scale);Maybe it's not really a spacing issue so much as a scaling issue. I know that on some systems, when you scale the graphics to print that are simple text, some letters will come out further apart and some will be squeezed together. I would suggest that you try commenting out your scaling code and let it print at the scale that it wants, just to see what happens.
    Cheers,
    Sean Carrick
    PekinSOFT Systems
    Edited by: PekinSOFT.Systems on Apr 16, 2009 8:27 PM

  • OCR text with strange spacing

    We are OCRing large numbers of PDF documents using Abbyy FineReader 9.0 - the recognised text that you can see within the Abbyy program looks great, but if you save the OCR'd files as PDFs & then copy/paste the text out of the resulting PDF file opened in Adobe Acrobat Prof 8.0, there is often a space between each character, making the text search function useless! Has anyone else encountered this? This problem doesn't occur if you copy/paste the text from the same PDF doc in earlier versions of Adobe Acrobat......Abbyy customer service has been completely useless, so any help would be greatly appreciated.

    Hi Mike,
    Thanks very much for your email. Our problem is that we are mainly doing batch OCRing, as we have thousands of documents being digitized - do you happen to know if Adobe supports text recognition in batches within Acrobat, or within some other Adobe software?
    Thanks very much
    Penny

  • Div behaviour in IE vs Firefox... strange spacing

    http://www.bnimarionbusinessbuilders.com/test2.html
    I am just working on the structure at this point, but there
    is an odd bit of space added at the very top of the left column
    (before the burgundy bar) in Internet Explorer. It renders
    perfectly in Firefox, and looks perfect in Dreamweaver. I have
    tried EVERYTHING to make that gap go away. I've adjusted margins,
    padding, looked for stray spaces in the coding, but nothing.
    Hopefully some of you may have an idea as to how to make this
    go away! Thank you in advance.
    ~Laura, Laipply's Quickprint
    http://www.laipplyqprint.com

    LaipplysQuickprint wrote:
    >
    http://www.bnimarionbusinessbuilders.com/test2.html
    >
    > I am just working on the structure at this point, but
    there is an odd bit of
    > space added at the very top of the left column (before
    the burgundy bar) in
    > Internet Explorer. It renders perfectly in Firefox, and
    looks perfect in
    > Dreamweaver. I have tried EVERYTHING to make that gap go
    away. I've adjusted
    > margins, padding, looked for stray spaces in the coding,
    but nothing.
    >
    > Hopefully some of you may have an idea as to how to make
    this go away! Thank
    > you in advance.
    >
    > ~Laura, Laipply's Quickprint
    >
    http://www.laipplyqprint.com
    >
    Hi,
    Change the CC in the head of the doc - replace yours for
    mine....
    <!--[if IE]>
    <style type="text/css">
    /* place css fixes for all versions of IE in this conditional
    comment */
    .twoColLiqRtHdr #mainContent { zoom: 1; }
    /* the above proprietary zoom property gives IE the hasLayout
    it needs
    to avoid several bugs */
    </style>
    <![endif]-->
    In your stylesheet - find this.....
    .twoColLiqRtHdr #topbar {
    background-color: #68121F;
    Replace with.....
    .topbar {
    background-color: #68121F;
    height: 7px;
    Now in your HTML markup find each instance of where you would
    like to
    use this, for example...
    <div id="topbar">
    <img src="spacer.gif" height="7" width="1">
    </div>
    and replace with this.....
    <div class="topbar">
    </div>
    HTH
    chin chin
    Sinclair

  • Strange FONT in Adobe Reader 9 with Windows 7

    If a pdf was made from a word document or anything other than a scan the font is very strange, not default arial (see attached picture).  I had this problem in reader X adn downgraded adn still have the problem.  WHen this document is opened in gogle docs or on another computer the font is arial.  Thanks for your help.

    I have the same issue in multiple documents on Windows 7 with Adobe Reader X 10.1.0.  Multiple others on my team can open the same files and do not have the issue.  I have done a terse check and we have similar installed programs, etc.
    Since I am not creating the documents, I have no control over how they are created.  Also, I seem to have the issue on my computer and others do not.
    Is there any way to troubleshoot font substitutions?  Is there any way to verify fonts?  Certainly I can see some fonts are not embedded in a sample I have, but I cannot see any way to know what font was specified and which was picked.  If I could find out that, I may delete the strangely spaced one so a better choice is picked.  It picks this odd font for what should be Arial...I think...but I am not sure. On this one sample doc I was able to get the creator to embed all fonts and it looks correct on my machine.  However the previous version without embedded fonts shows like this:
    Here is what it should look like:
    Both version look fine on other machines.
    Properties on bad font substitution version (I expect the circled are the issue):
    Any help would be appreciated.

  • PDF from 9.0 results in weird inter- and intra-word spacing. Cause?

    Running Framemaker Version 9.0p250 on Windows XP.
    I printed a book using the Adobe PDF printer driver. There are scattered instances where there are significant spaces (between 3 and 12 n-spaces) between consecutive letters of a word or between two words. For example:
    Inter-word spacing examples:      main    processes employed and          the functional
    Intra-word spacing examples:      audi         t         Descrip                        tion
    These spaces do not exist in the Framemaker source files. In addition, when I copy the content containing these spaces to the Clipboard and then paste them into this message, the odd spacing disappears. However, when I print the pages containing these errors to my local or network printers, the pages print with the strange spacing intact.
    I checked maker.ini and the setting is "DisplayUsingPrinterMetrics=On" as expected.
    Any help much appreciated!
    Val

    Information about the hotfix is here:
    http://blogs.adobe.com/techcomm/2008/07/hotfix_for_framemaker_1.html
    PS Hotfix KB 952909
    Over the years I've occasionally seen extremely large spaces like that but it was always resolved by a reboot.
    SHeila

  • Weird spacing and overlapping elements.

    I'm running OS X 10.5.6 on a 2.4 GHz Intel Core Duo 24" iMac.
    A huge number of web sites I view in Safari (3.2.1) and Firefox (3.0.1) have really strange spacing and elements of the site seem to overlap. Like the site is coded badly and not tested for mac.
    I can't really remember if this problem started with a software update or if it has been there the whole time but It doesn't happen on my Intel MiniMac in work.
    An example is this www.thrashermagazine.com . It works fine in work but is all crazy at home.
    Anyone else having problems like this?

    Sloppy page code:
    http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fwww.thrashermagazi ne.com%2F&profile=css21&usermedium=all&warning=1&lang=en
    http://validator.w3.org/check?uri=www.thrashermagazine.com&charset=%28detect+aut omatically%29&doctype=Inline&group=0

  • Script or font problems with google translate to/from Thai in Safari

    I have a strange issue with the new google translate to Thai when I go to this page for instance:
    http://translate.google.com/translate_t?text=hellow,how+are+youtoday?&langpair=en%7Cth#en
    that the thai script just comes out as a bunch of boxes, except for the punctuation. This works fine in Firefox, works with other alternate scripts (Korean, Arabic, Japanese, Chinese, Korean, Persian) and I can type Thai script into other google search areas with the Thai keyboard, so I have the Thai font in general installed.
    It seems to be fixed if I change the Fixed Width Font in the Safari Appearance Preferences to anything but a fixed width font, e.g. Lucida Grande since non of the fixed width fonts seem able to handle Unicode for some reason. Why can Firefox understand this and put in Thai instead, but Safari can't?
    Using Lucida Grande for the fixed width font is a fine interim solution, but it is not fixed width so other things will come out strangely spaced.

    I have a strange issue with the new google translate to Thai when I go to this page for instance:
    http://translate.google.com/translate_t?text=hellow,how+are+youtoday?&langpair=en%7Cth#en
    that the thai script just comes out as a bunch of boxes, except for the punctuation. This works fine in Firefox, works with other alternate scripts (Korean, Arabic, Japanese, Chinese, Korean, Persian) and I can type Thai script into other google search areas with the Thai keyboard, so I have the Thai font in general installed.
    It seems to be fixed if I change the Fixed Width Font in the Safari Appearance Preferences to anything but a fixed width font, e.g. Lucida Grande since non of the fixed width fonts seem able to handle Unicode for some reason. Why can Firefox understand this and put in Thai instead, but Safari can't?
    Using Lucida Grande for the fixed width font is a fine interim solution, but it is not fixed width so other things will come out strangely spaced.

  • Disappearing Footnotes

    Hello,
    I have the problem many people seem to with footnotes causing strange spacing in the main text (irresolvable through clicking all the 'widows' and 'keep lines together' options). I am willing to live with this, however, I have since found that all the pages in which there is 'wierd spacing' in the main text also fails to display one footnote. That is, some my footnotes are simply not appearing (even though they are referenced in the main text). IE Footnotes #47 is just not on the page.
    This is not just a display/view problem, as the disappearing footnotes do NOT appear in print outs or pdfs. If I juggle around the spacing, the lost footnote will appear again, but others will disappear.
    Is anyone else having this problem?
    Would really appreciate any suggestions or help,
    Thank you!

    Benjaman wrote:
    I appreciate your suggestion but it's not really good enough for an application that supposedly supports exporting to RTF with footnotes.
    You take your dreams for reality but, as far as I know, Apple NEVER claims that RTF retains footnotes.
    The Help states:
    _RTF: RTF files retain most of the text formatting and graphics. You can open and edit RTF files in a word processor._
    If I read well, "most" doesn't means "all" text formatting. Footnotes are one of the not retained formatting.
    Yvan KOENIG (from FRANCE mardi 20 mai 2008 09:37:59)

  • Apps spread out over several screens - only 4 or 5 to a page

    Guys,
    Apologies if this is something that comes up regularly but I've noticed my apps are strangely spaced out. After the first screen I scroll across to find 4 apps, then scroll across to another screen where there are 5 apps. Why are these not all on one page?
    Hopefully it's something very simply and I'm being stupid but it's extremely annoying!
    Cheers,
    James

    It sounds like you have not arranged your apps. To move the apps around, hold your finger on an app until they start jiggling. Once they are jiggling, use your finger to move them around. When you're done, click the Home button to freeze them in place.

  • A Question on the iPhone SMS Hack

    If your text messaging feature was blocked on your plan so like no messages you send or any one sends to you would go through. Would that SMS Hacking message go to your phone?

    I got hacked last night. I deleted the text b/c I thought it was a wrong number. It was a foreign number and it did have strange spacing and symbols in it plus was written in bad English. Worse than my English anyways. Later that night my iPhone started playing music on its own. I thought I must of accidentally set it off some how. I turned off the music and went to bed. I had no idea I was being hacked. This guy probably has all my information. Anyways, I didn't think anything of it until I read about the SMS virus today. I've power cycled my phone and patched it but I'm not sure what I should do next, there is no telling what this guy got from my phone. I find it strange that my phone does this the night before the patch comes out.
    Message was edited by: Riddler42

  • Manana font issue

    I have a user with a manana font issue - this font works in other applications, such as photoshop, word, etc. - but in InDesign it shows almost as wingdings...replaces with other letters and strange spacing, etc.  I've tried removing the font and reinstalling...  also tried clearing all the cache, etc. - also even uninstalled and reinstalled the Adobe Suite.  Issue hangs on.  Any other ideas? 
    She's running Windows 7 Professional 32 bit.
    Adobe Suite CS5 Version 7.
    Thanks for any help.

    My Mac flat out refuses to install the font ("2 minor problems were found. Proceed with caution", "1 serious error was found. Do not use this font."). Running it through a font checker tells me
    Table Directory: Directory Entry checksum error
      This error indicates a structural problem with the font.
    OS/2: The version number is invalid
      Bad version number in OS/2 table (must be >0, and must be >1 for OT-CFF fonts).
    name: Same ID, not the same string length
      There are differences between a Mac name string and the corresponding Windows string.
    And the Mac shows its name as "MaÒana" ... Really, this is a shoddy rip-off of a commercial font. I guess you got exactly what you paid for.

  • Need help manipulating a converted file

    I recently purchased Adobe ExportPDF.  I have converted a PDF file to a Word document.  When I try to manipulate the document - by changing the font and spacing, it gets all screwy - like there are codes in it.  It will cut off the line in the middle of a word and has really strange spacing.  Any suggestions?

    This kind of behavior typically has to do with the line spacing.
    I would suggest copying all (Edit > Select All, Edit > Copy) of the content of the converted Word document, opening a new Word document and pasting.  Then you adjust the line spacing as well as remove any additional spacing before and after paragraphs.
    Most of the time this behavior is caused by a document that was originally created in InDesign or another page layout application, converted to PDF, then converted to Word.  Page layout programs have a lot more capabilities as it pertains to manipulating text and paragraph settings.  These don't always translate well to Word.
    -David

  • Strange letter spacing from AppleWorks

    I am getting strange letter spacing with some fonts from AppleWorks. There is more space between some letters than others—some letters are almost touching each other, while there is a gap between others, creating an ugly appearance. I printed out the same text in the same font from TextEdit and it looked beautiful. The problem is not confined to just one font or document. I thought I had the latest version of AppleWorks,which is 6.2.4. I have a Brother HL-5250DN laser printer.

    AppleWorks 6 is really an OS 9 application carbonized (quickly) to run in OS X & it has never been coded to take advantage of most of the "bells & whistles" of OS X, such as font display. TextEdit is a cocoa application - OS X only. The problem you're seeing may be fixed by turning Fractional Character Widths in Preferences > General… > Topic: Text on (or off if it's on). Some users like the system hack, Silk. You can find it with a search on MacUpdate or VersionTracker.
    The last version of AppleWorks is 6.2.9, released in January, 2004. Here at the links I have for the 6.2.9 updater. The first has a link to the North American updater in the upper right & links to other languages further down.
    North American/US
    International/UK
    French
    German

  • Strange line spacing!

    I open a new blank document in the Pages, I type my name on the first line and hit enter. I just want to go to the next line, but it decides to skip a line. No obviously odd formatting. The following paragraph sticks to the single line spacing, but the first few lines are automatically putting in a space. Why is this happening and how to stop it? It's absolutely maddening. If I want to double space it, I will do that myself. When I look at the spacing it says "1". 

    It has either space before or after paragraph.
    I am guessing "the new Pages" means Pages 5, although we don't know when you added that tag.
    select the text > Format > Text > Spacing > Before/After Paragraph
    Peter

Maybe you are looking for