Lot of space in pdf when generate using iText

I am generating PDF from html content. for this i have used HTMLWorker. The code is like this
ArrayList list=HTMLWorker.parseToList(new StringReader(sb.toString()),style);
for(int i=0;i<list.size();i++)
document.add((Element)list.get(i));
where document is object of Document.
My generated PDF is fine, the only problem is if the content is too much, lot of space comes in PDF. It is like 1 page with content, next page with only header and then all space, then again the next with content, in random order.
please help.

Why don't you look for a mailing list and/or forum of the iText folks? They can probably help you a lot more than we can.

Similar Messages

  • Possible to overwrite a pdf when in use or open a pdf without holding/locking the file for update

    Possible to overwrite a pdf when in use OR alternative open a pdf without holding/locking the file
    We frequently generate pdf files from our 3D program and would like to know if it's possible to either open a pdf file in a way that it doesn't get locked or hold up so the pdf can be updated even when opened or in use.
    Most programs e.g. ultra edit & notepad will let go the file when you opened and hence the file can be updated or over written even when in use.
    If any guru can help, would be highly appreciated

    Hi Abbas,
    It's not possible to overwrite a pdf when it is already in use by a different program or user. The file then opens up in Read Only mode.
    You can make a copy of the file and then apply those changes later in the original file. That's the only possible solution.
    Regards,
    Rahul

  • Cannot save FrameMaker 7 book as PDF, when opened using FrameMaker 8

    I have a template created using FM 7. I have converted those templates into FM8 and then created a book. When I try to save the book as PDF, it gives the following error (in .txt format):
    ===========================================================================
    %%[ ProductName: Distiller ]%%
    %%[Page: 1]%%
    %%[Page: 2]%%
    %%[ Error: undefined; OffendingCommand: pdfmark; ErrorInfo: Rect ]%%
    Stack:
    /ANN
    /Link
    /Subtype
    /G4.282834
    /D
    /GoToR
    /S
    /Action
    /Type
    -dict-
    /Action
    [0 0 0]
    /Border
    [1200 5218 9000 4955]
    /Rect
    -mark-
    %%[ Flushing: rest of job (to end-of-file) will be ignored ]%%
    %%[ Warning: PostScript error. No PDF file produced. ] %%
    ===========================================================================
    When I converted these FM8 files into FM7 and generated a book, I was able to save as PDF. I am able to save the individual FM8 files (using FM7 template) into PDF files.
    Why am I not able to save the book as PDF, when I use FM7 template in FM8?

    This problem was fixed in FM8.0p266. You are probably using the original release of FM8.0 (FM8.0p236).
    Please update your version (Help > Updates), then try saving as PDF again.
    Shlomo Perets
    MicroType * http://www.microtype.com
    FrameMaker training & consulting * FM-to-Acrobat TimeSavers
    "Improve Your FrameMaker Skills" live web-based training sessions

  • Cannot Extract Embedded Font in PDF Report Generated Using Crystal Reports XI

    The issue is that sometimes the PDF reports generated by Crystal Report XI are not showing the fonts properly. Arial font is used in the Crystal report template(.rpt file) for field label and data elements. When the report is opened in Adobe Reader, it displays the message - "Cannot extract the embedded font 'AAAAAA+ArialBold'. some characters may not display or print correctly." Other PDF Readers like Foxit show blank spaces instead. I tried to change the font to Courier New, Times New Roman etc but still getting the same message.
    The issue is consistent when the application is deployed in Windows server. When deployed in Unix server the issue happens very occasionally. The font files are available and installed in the UNIX box.
    Please tell me why this error message is shown and also tell me how to get it fixed.

    Hi Scot
    Just replied to your email re. conf call.
    In the meantime.
    1st question.  
        Some of our developers are creating the reports under crystal 2008, while some are 2011.
        Could this be a problem, when they are run by the SDK?
        Should we upgrade all our developers to crystal 2011?
    The version of CR a report is created in should not matter at all. I am 100% certain this is not the issue.
    2nd question
        When the report is run, to create the pdf... why would it actually embed the font on the pdf?
        if they weren't embedded.. wouldn't it just pull up the proper font, if the user's pc had that font on their
        pc?
        if it does the common fonts aren't embedded, we would just have to worry about the things like
        barcode 3 of 9
    I can not answer this as that essentially is the way the product is designed. It may look like a limitation, but there are no work-arounds and I would not consider this to be a bug. Perhaps an enhancement, but a pretty faint hope there. And even if, enhancements take very, very low priority and take long, long time before implementation.
    3rd question
        Would the fonts, just need to be installed on the server?   we've seen some indication, that they
        also need to be in a java sub-directory
    The fonts must be on the server as that is where the report engine does it's work, then the report is streamed to the user's browser. E.g.; there is no work done on the browser. Also, the process must have rights to access the fonts.
    One last point. You mention deployment to Linux. Linux is not supported. Please see: SAP Crystal Reports, Developer Version for Microsoft Visual Studio - Supported Platforms
    I suspect this is more an issue with CR not working with the framework for Linux.
    - Ludek

  • Unknown charecters for polish letters in pdf when generated through RAD.

    Hi,
    I have created a report in Crystal Reports which extracts data from SQL Server database.
    In crystal report viewer, when i extract to  pdf or any other form , i get expected result.
    When I use this .rpt file in my application which is deployed in my server ( RAD7.0 ), in the browser i get expected crystal report but when I extract to pdf file, I get unknown characters instead of polish charecters.All other formats work fine excluding pdf.
    Am I missing any updated plugin in RAD. or something to set up in Crystal report.
    Thanks in advance.
    Please suggest /advice.

    Hi , please find the configuration report for Eclipse as given below. Please let me know update site which can be used as software update for RAD. 
    FYI , I got a URL to update but , its this site seems to be down . i.e. "http://downloads.businessobjects.com/akdlm/crystalreportsforeclipse/1_0/update_site/"
    Please advice.
    Features:
    com.businessobjects.crystalreports.integration.eclipse.feature (1.0.8.v1541) "Crystal Reports Java Development Tools"
    com.businessobjects.integration.eclipse.sdks (11.5.0.v20061018) "Crystal Reports for Rational Application Developer SDKs"
    com.businessobjects.integration.rad (11.5.0.v20061018) "Crystal Reports for Rational Application Developer"
    Plug-in Registry:
    com.businessobjects.crystalreports.designer.3.4.dseintegration (1.0.8.v1541) "Crystal Reports DSE Integration Plug-in" [Installed]
    com.businessobjects.crystalreports.designer.core (1.0.8.v1541) "Crystal Reports Designer Core Package" [Resolved]
    com.businessobjects.crystalreports.designer.core.nl1 (1.0.8.v1541) "Crystal Reports Designer Core Package" [Resolved]
    com.businessobjects.crystalreports.designer.core.nl2 (1.0.8.v1541) "Crystal Reports Designer Core Package" [Resolved]
    com.businessobjects.crystalreports.designer.dseintegration (1.0.8.v1541) "Crystal Reports DSE Integration Plug-in" [Installed]
    com.businessobjects.crystalreports.designer.editor (1.0.8.v1541) "Crystal Reports Designer Editor Package" [Resolved]
    com.businessobjects.crystalreports.designer.editor.nl1 (1.0.8.v1541) "Crystal Reports Designer Editor Package" [Resolved]
    com.businessobjects.crystalreports.designer.editor.nl2 (1.0.8.v1541) "Crystal Reports Designer Editor Package" [Resolved]
    com.businessobjects.crystalreports.designer.enginepreferences (1.0.8.v1541) "Crystal Reports Designer Engine Preferences Package" [Resolved]
    com.businessobjects.crystalreports.designer.enginepreferences.nl1 (1.0.8.v1541) "Crystal Reports Designer Engine Preferences Package" [Resolved]
    com.businessobjects.crystalreports.designer.enginepreferences.nl2 (1.0.8.v1541) "Crystal Reports Designer Engine Preferences Package" [Resolved]
    com.businessobjects.crystalreports.designer.preview (1.0.8.v1541) "Crystal Reports Preview Tab" [Resolved]
    com.businessobjects.crystalreports.designer.preview.nl1 (1.0.8.v1541) "Crystal Reports Preview Tab" [Resolved]
    com.businessobjects.crystalreports.designer.preview.nl2 (1.0.8.v1541) "Crystal Reports Preview Tab" [Resolved]
    com.businessobjects.crystalreports.designer.WTPIntegration (1.0.8.v1541) "Crystal Reports WTPIntegration Plug-in" [Resolved]
    com.businessobjects.crystalreports.designer.WTPIntegration.nl1 (1.0.8.v1541) "Crystal Reports WTPIntegration Plug-in" [Resolved]
    com.businessobjects.crystalreports.designer.WTPIntegration.nl2 (1.0.8.v1541) "Crystal Reports WTPIntegration Plug-in" [Resolved]
    com.businessobjects.crystalreports.integration.eclipse (1.0.8.v1541) "Crystal Reports Java Development Tools" [Resolved]
    com.businessobjects.crystalreports.integration.eclipse.facet.jrc (11.8.8.v1541) "Crystal Reports Runtime Support" [Resolved]
    com.businessobjects.crystalreports.integration.eclipse.facet.jrc.nls1 (11.8.8.v1541) "Crystal Reports Runtime Support Language Pack 1" [Resolved]
    com.businessobjects.crystalreports.integration.eclipse.facet.jrc.nls2 (11.8.8.v1541) "Crystal Reports Runtime Support Language Pack 2" [Resolved]
    com.businessobjects.crystalreports.integration.eclipse.nls1 (1.0.8.v1541) "Crystal Reports Java Development Tools Language Pack 1" [Resolved]
    com.businessobjects.crystalreports.integration.eclipse.nls2 (1.0.8.v1541) "Crystal Reports Java Development Tools Language Pack 2" [Resolved]
    com.businessobjects.crystalreports.integration.eclipse.pojo.nls1 (1.0.8.v1541) "Crystal Reports Designer POJO Support Language Pack 1" [Resolved]
    com.businessobjects.crystalreports.integration.eclipse.pojo.nls2 (1.0.8.v1541) "Crystal Reports Designer POJO Support Language Pack 2" [Resolved]
    com.businessobjects.crystalreports.samples (1.0.8.v1541) "Crystal Reports Samples" [Resolved]
    com.businessobjects.designer.crystalreportsforeclipse.doc (1.0.8.v1541) "Crystal Reports for Eclipse Designer Guide" [Resolved]
    com.businessobjects.designer.crystalreportsforeclipse.doc.nl1 (1.0.8.v1541) "Crystal Reports for Eclipse Designer Guide" [Resolved]
    com.businessobjects.developer.crystalreportsforeclipse.doc (1.0.8.v1541) "Crystal Reports for Eclipse Developer Guide" [Resolved]
    com.businessobjects.developer.crystalreportsforeclipse.doc.nl1 (1.0.8.v1541) "Crystal Reports for Eclipse Developer Guide" [Resolved]
    com.businessobjects.integration.eclipse.designer.doc (11.5.0.v20061018) "Crystal Reports Toolkit for the Rational Software Development Platform Designer Guide" [Resolved]
    com.businessobjects.integration.eclipse.devtools.doc (11.5.0.v20061018) "Crystal Reports Toolkit for the Rational Software Development Platform Developer Guide" [Resolved]
    com.businessobjects.integration.eclipse.enterprise.publishing.crystalreports (11.5.0.v20061018) "Crystal Reports Publishing" [Installed]
    com.businessobjects.integration.eclipse.library (1.0.8.v1541) "Crystal Reports User Functions Library Support" [Resolved]
    com.businessobjects.integration.eclipse.library.nls1 (1.0.8.v1541) "Crystal Reports User Functions Library Support Language Pack 1" [Resolved]
    com.businessobjects.integration.eclipse.library.nls2 (1.0.8.v1541) "Crystal Reports User Functions Library Support Language Pack 2" [Resolved]
    com.businessobjects.integration.eclipse.reporting.ufl.java (1.0.8.v1541) "Crystal Reports Java User Function Library" [Resolved]
    com.businessobjects.integration.eclipse.reporting.ufl.java.nls1 (1.0.8.v1541) "Crystal Reports Java User Function Library Language Pack 1" [Resolved]
    com.businessobjects.integration.eclipse.reporting.ufl.java.nls2 (1.0.8.v1541) "Crystal Reports Java User Function Library Language Pack 2" [Resolved]
    com.businessobjects.integration.eclipse.sdks (11.5.0.v20061018) "Crystal Reports for Rational Application Developer SDKs" [Resolved]
    com.businessobjects.integration.eclipse.web.properties (1.0.8.v1541) "Crystal Reports File Version Properties Plugin" [Resolved]
    com.businessobjects.integration.eclipse.web.properties.nls1 (1.0.8.v1541) "Crystal Reports File Version Properties Language Pack 1" [Resolved]
    com.businessobjects.integration.eclipse.web.properties.nls2 (1.0.8.v1541) "Crystal Reports File Version Properties Language Pack 2" [Resolved]
    com.businessobjects.integration.eclipse.web.properties.update.3.4 (1.0.8.v1541) "Crystal Reports File Version Properties Plugin" [Installed]
    com.businessobjects.integration.rad (11.5.0.v20061018) "Crystal Reports for Rational Application Developer" [Resolved]
    com.businessobjects.integration.rad.crviewer (11.5.0.v20061018) "Crystal Reports JSP Tag Library Viewers" [Resolved]
    com.businessobjects.integration.rad.crviewer.preferences (1.0.8.v1541) "Crystal Reports Viewer Preferences" [Resolved]
    com.businessobjects.integration.rad.crviewer.preferences.nls1 (1.0.8.v1541) "Crystal Reports Viewer Preferences Language Pack 1" [Resolved]
    com.businessobjects.integration.rad.crviewer.preferences.nls2 (1.0.8.v1541) "Crystal Reports Viewer Preferences Language Pack 2" [Resolved]
    com.businessobjects.integration.rad.jsf.crviewer (11.5.0.v20061018) "Crystal Reports Faces Viewer" [Installed]

  • Custom fonts not displayed when PDF is generated using 10g Report builder

    Hi
    I have two fonts , abc.ttf and def.ttf which I have placed under C:\Windows\fonts. One of these displays a logo and the other displays barcode
    I have added the environment variable REPORTS_PATH which has value C:\Windows\fonts. I have also added entries for PDF Subset in uifont.ali.
    But still when I run the report and out to a PDF file, the fonts are not displayed. They are remapped to some other fonts.
    When I check PDF document properties in Adobe reader, under fonts tab it says
    abc
       Type:Type1
       Encoding:ANSI
       Actual Font: Adobe Sans MM
       Actual Font Type : Type 1
    def
       Type:Type1
       Encoding:ANSI
       Actual Font: Adobe Sans MM
       Actual Font Type : Type 1
    uifont.ali entries
    [ PDF:Subset ]
    # This example shows how to subset Arial True Type font into the PDF file
    # Arial = "Arial.ttf"
    # The True Type font files must exist in any one of the folders specified in
    # REPORTS_PATH.
    abc= "abc.ttf"
    def="def.ttf"
    In Oracle reports builder, I am able see these fonts and select them in my report layout
    I am able to see the fonts in Preview/screen output while running RDFs in my reports builder, but PDF output doesnt display these fonts
    Is there anything else which is required to do ? Do I need to restart the machine after environment variable is added ?

    In one PC were Report Builder is installed, we see "COURIER NEW - WESTERN" font and the RDF created / saved in that font works fine on server. I don't know if this helps!

  • Can I split a PDF / PCL file when generating using Crystal Report

    Hi,
    I can generate a big PCL file from sending it to a PCL printer from Crystal. Can I add something to split the PCL file while generating it from Crystal?
    Any pointers towards splitting a PCL would be appreciated.
    Thank you
    Deepa

    Hi Deepti
    Crystal Reports is just a tool to present the data.
    Unfortunately there is no functionality to instruct to split the report pages while sending to the printer that too automatically from Crystal Reports Designer Stand Alone application.
    You can select the page range according toyour requirement.
    Regards
    Sourashree

  • Why are url and email addresses not fully viewable in a PDF when generated from a Word file?

    I have a question?
    A colleague in our Copenhagen office wanted to generate a pdf from a Word file.  She is working on a Windows 2007 operating system and is running Acrobat Pro 9.  When she generated the PDF only part of a url and an email address was visible when the PDF was viewed.  She was wofking from Standard settings.  I am running the same software on the same Windows platform and using the same computer equipment with the same settings yet I was able to generate a PDF where the full url and email address was visible.
    Can anyone out in Adobe Acrobat land provide me with an answer?
    Patrick Lennon

    That's probably because the Mac people are opening or viewing the PDFs within the Mac's "Mail" program or with the "Preview" program and not with Acrobat.
    Since the Windows people aren't using these programs and most likely just Acrobat or Adobe Reader, the layers are kept hidden.
    I'm afraid the only way to truly keep those layers hidden is to delete them before saving your file as a PDF. (Of course, do a "Save As" and keep your original .ai file intact.

  • How to Get XML from the PDF form generated using Designer that is stored in LC

    We have a Requirement of Generating reports on what a PDF form is comprised of? It is easy for us to scan / parse the XML format of the PDF form and get all the relavent Info we need. We are able to see the XML format of the PDF form when we open up the Form in Designer.
    But we are trying to run this report in a Batch Mode for many PDF files. I need to know how to get a XML format of the PDF file that is stored in LC that was developed using Designer. Once we are able to get the XML of the PDF form it is just a scan / parse to get the relavent data.
    Can some one tell me how to get the XML format of a PDF file stored in the LC?

    If I place the PDF form on the LC server - Can you let  me know of the tools you are referring to get XML design from the PDF form?
    Is it through a Process Orchestration I need to run the PDF through to get a XML design out of it?
    I am fine in storing the PDF in the LC server? How will I get the XML design (XML) from this PDF on the server?

  • Missing text in PDF when I use Acrobat 9.2 and FM 9

    I was able to PDF ok from FM9 using Acrobat 6, but when I upgraded to Acrobat 9.2,
    I'm getting some missing text in the PDF. Some non-bold text is missing. The number
    for Chapter 3 is missing in the TOC. Any suggestions?

    I was able to PDF ok from FM9 using Acrobat 6, ...
    What font name, format (TTF, PFB/PFM, OTF?) and vintage?
    Did you upgrade the fonts when upgrading the apps?
    Any chance you have multiple copies of the same typeface name installed? Historically, having both the TTF and PFM (Type 1) of the same name installed could have undesired results.
    ... but when I upgraded to Acrobat 9.2, I'm getting some missing text in the PDF. Some non-bold text is missing.
    What is "some text"? Some entire typefaces (all text thereof), or just some characters of a typeface, like, say, the ligatures in Helvetica.
    The number for Chapter 3 is missing in the TOC.
    What font is Frame looking for?
    Also, are you embedding the fonts during PDF creation?

  • Arial Narrow Font not embedded PDF when generated on server

    Hi,
    I'm struggling with some font issues. My report contains only Arial or Arial Narrow subset font. These fonts are installed on all client and server machines. When I render the report locally and export it to pdf then everything works fine, the report looks
    ok and when checking the pdf properties the Arial narrow font has been embedded. After deploying it to a SSRS server 2008 R2 and render it from this server the export to pdf converts the Arial Narrow font to Helvetica messing up my report.
    Any ideas how to maintain the Arial Narrow font?
    As far as I can tell every condition as described in http://technet.microsoft.com/en-us/library/ms159713(SQL.100).aspx are met. 

    Hi hans0305,
    According to your description that you have problem with the font in the PDF, The font type is correct when you export report to PDF in the Preview but font changed from Arial Narrow to Helvetica when export to PDF in the Report Server, right?
    This problem is related to the font-embedding of PDF. The font Arial Narrow haven’t embedded successfully to the PDF. Please check in the client machine which the report server and report manger located to make sure the Arial Narrow font have been installed
    correctly by enter the Control Panel and select the “Font”.
    For the client machine, closing all instances of the PDF viewer then reopening them should fix the issue. If the issue still persists, you may need a full machine reboot to get the client/server to recognize the newly installed font, you can also try an
    reinstall of the font Arial Narrow.
    Articles below are for your reference:
    http://support.microsoft.com/kb/314960
    http://blogs.msdn.com/b/donovans/archive/2007/07/20/rendering-to-pdf.aspx
    Similar thread for your reference:
    https://social.msdn.microsoft.com/Forums/sqlserver/en-US/4dce5834-c6bf-4066-ba70-98b9d6ceabaa/pdf-from-report-manager-uses-different-fonts?forum=sqlreportingservices
    If you still have any question, please feel free to ask.
    Regards
    Vicky Liu

  • How to display the Image in PDF report by using iText Report

    Hi
    Im trying to display the image which is very big one.
    This is my code
    Document document=new Document();
    PdfWriter.getInstance(document,new FileOutputStream("imagePDF.pdf"));
    document.open();
    Image image = Image.getInstance ("1.bmp");
    document.add(new Paragraph("Images in PDF"));
    document.add(image);
    document.close();
    But the image "1.bmp" is displayed partially. Its not spanning to the next page.
    Can anyone help me to solve this one?
    Thanks in Advance
    dhilip

    Do you actually want the image to span multiple pages? I am not sure that will be possible without splitting the image; the itext mailing list would be the place to ask.
    You could make the the page size big enough for the image using Document.setPageSize()

  • Header and Footer for PDF with images using itext.jar

    HeaderFooter class was available in itext.jar ,I tried using this class with PDFtemplate and Phrase i am trying to put the image on the header and footer ,however the image comes perfectly for the first page ,its not applicable for the second or continuous page, is it possible to have the images in header and footer?
    Regards,
    Venkateswaran

    Questions about third-party APIs should be asked in the forum/newsgroup specific to that API. These forums are for questions relating to the API as provided by Sun.
    Go find an iText forum.

  • Timecapsule uses a lot of space

    Hello, hope someone can help.
    I use timecapsule1T to backup my system. The problem is it's using a lot of space. All 1T is used. Why is it using so much?

    How large a drive are you backing up? TM is an archiving utility which means every backup uses more hard drive space. Given enough time and data the drive will eventually fill up.
    About TM "Backup Drive is Full"
    Alert TM only deletes older files if they have been deleted from the source and when TM needs space on the backup drive for a new incremental backup. Time Machine "thins" it's backups; hourly backups over 24 hours old, except the first of the day; those "daily" backups over 30 days old, except the first of the week. The weeklies are kept as long as there's room.
    So, how long a backup file remains depends on how long it was on your Mac before being deleted, assuming you do at least one backup per day. If it was there for at least 24 hours, it will be kept for at least a month. If it was there for at least a week, it will be kept as long as there's room.
    Note, that on a Time Capsule the sparsebundle grows in size as needed, but doesn't shrink. Thus, from the user's view of the TC it appears that no space has been freed, although there may be space in the sparsebundle.
    Once TM has found it cannot free up enough space for a new backup it reports the disk is full. You can either erase the backup drive and start your backups anew or replace the drive with a larger drive.

  • PDF's generated with Coldfusion 8

    Does anyone know what Adobe Reader version is the minimum for viewing PDF's generated using the <cfdocument> tag? I know the PDF will open with reader 9 and up. I was testing my application with an old windows 2k machine with Adobe Reader 5.0 installed, and when I opened the PDF...it was all messed up. I installed the newest version of Reader and it works fine now. I am working on my "minimum requirements" document, so if anyone knows I would greatly appreciate the help.

    This is an application used by the general public, so I don't really know what version of Reader they will be using. Here is a screen shot of what happens with Reader 5
    I would just hate to say that the minimum requirements are Reader 9 and some company upgrade 100 computers when reader 8 would have worked fine. Or worse yet, stop using my software all together because they won't upgrade. I guess I can install old versions of reader (if I can find them) and see for myself.

Maybe you are looking for