RTF To PDF

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Peter

    RTF To PDF

    When printing PDF files to laser printers the print file becomes several
    times as big as the original file size and this becomes a problem when
    printing to remote printers over slow connections. For instance 1 page PDF
    original size 224Kb generates 3.41 MB print file and that becomes a problem
    when printing 20 pager report.

    Does anyone know if there is a way to reduce the print file size?

    One option is to create RTF files instead of PDF files, the RTF print files
    are about 3 to 4 times smaller than the PDF print files, but I need to merge
    two or 3 documents into one because they are also emailed as one document.
    So does anyone know of .NET library to merge RTF files? I am using iText to
    merge PDF files, but I don't see a function to merge RTF files with iText.


    Thank You



    Peter


  • Linda Liu[MSFT]

    #2
    RE: RTF To PDF

    Hi Peter,
    When printing PDF files to laser printers the print file becomes several
    times as big as the original file size

    What do you mean by the "print file" in the above sentence?

    I found several articles discussing how to reduce the PDF file size on the
    Internet and hope they would help you:

    'PDF file prints smaller or larger than expected (Acrobat 5.0-6.0 products
    on Windows)'


    '5 Tricks to Reduce PDF File Size'

    ile-size/

    As for merging RTF files, I found an application called "MONKEY MERGE",
    which can merge RTF files. You may get it from the following link:


    Hope this helps.
    If you have any question, please feel free to let me know.

    Sincerely,
    Linda Liu
    Microsoft Online Community Support

    Delighting our customers is our #1 priority. We welcome your comments and
    suggestions about how we can improve the support we provide to you. Please
    feel free to let my manager know what you think of the level of service
    provided. You can send feedback directly to my manager at:
    msdnmg@microsof t.com.

    =============== =============== =============== =====
    Get notification to my posts through email? Please refer to
    Find official documentation, practical know-how, and expert guidance for builders working and troubleshooting in Microsoft products.

    ications.

    Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
    where an initial response from the community or a Microsoft Support
    Engineer within 1 business day is acceptable. Please note that each follow
    up response may take approximately 2 business days as the support
    professional working with you may need further investigation to reach the
    most efficient resolution. The offering is not appropriate for situations
    that require urgent, real-time or phone-based interactions or complex
    project analysis and dump analysis issues. Issues of this nature are best
    handled working with a dedicated Microsoft Support Engineer by contacting
    Microsoft Customer Support Services (CSS) at
    http://msdn.microsoft.com/subscripti...t/default.aspx.
    =============== =============== =============== =====
    This posting is provided "AS IS" with no warranties, and confers no rights.


    Comment

    • Peter

      #3
      Re: RTF To PDF

      What I mean is the spool file from printing of a PDF file not the actual PDF
      file (spool file = print file).

      A 41K PDF spools to 458K, that's 10X as big, this becomes a problem when
      printing to remote printers on a slow connection, a 3 MB PDF files because
      30 MB spool files, but when printing the same file in RTF format the file
      spools to 6 MB.

      MONKEY MERGE will not help me because I need a library for my custom .NET
      application.

      "Linda Liu[MSFT]" <v-lliu@online.mic rosoft.comwrote in message
      news:bI9esdcqIH A.3608@TK2MSFTN GHUB02.phx.gbl. ..
      Hi Peter,
      >
      >When printing PDF files to laser printers the print file becomes several
      times as big as the original file size
      >
      What do you mean by the "print file" in the above sentence?
      >
      I found several articles discussing how to reduce the PDF file size on the
      Internet and hope they would help you:
      >
      'PDF file prints smaller or larger than expected (Acrobat 5.0-6.0 products
      on Windows)'

      >
      '5 Tricks to Reduce PDF File Size'

      ile-size/
      >
      As for merging RTF files, I found an application called "MONKEY MERGE",
      which can merge RTF files. You may get it from the following link:

      >
      Hope this helps.
      If you have any question, please feel free to let me know.
      >
      Sincerely,
      Linda Liu
      Microsoft Online Community Support
      >
      Delighting our customers is our #1 priority. We welcome your comments and
      suggestions about how we can improve the support we provide to you. Please
      feel free to let my manager know what you think of the level of service
      provided. You can send feedback directly to my manager at:
      msdnmg@microsof t.com.
      >
      =============== =============== =============== =====
      Get notification to my posts through email? Please refer to
      Find official documentation, practical know-how, and expert guidance for builders working and troubleshooting in Microsoft products.

      ications.
      >
      Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
      where an initial response from the community or a Microsoft Support
      Engineer within 1 business day is acceptable. Please note that each follow
      up response may take approximately 2 business days as the support
      professional working with you may need further investigation to reach the
      most efficient resolution. The offering is not appropriate for situations
      that require urgent, real-time or phone-based interactions or complex
      project analysis and dump analysis issues. Issues of this nature are best
      handled working with a dedicated Microsoft Support Engineer by contacting
      Microsoft Customer Support Services (CSS) at
      http://msdn.microsoft.com/subscripti...t/default.aspx.
      =============== =============== =============== =====
      This posting is provided "AS IS" with no warranties, and confers no
      rights.
      >
      >

      Comment

      • Linda Liu[MSFT]

        #4
        Re: RTF To PDF

        Hi Peter,

        Thank you for your reply!

        I have spent more than one hour searching a .NET class library to merge RTF
        files but without success.

        In fact, a simple workaround is to use the RichTextBox control to do what
        you want.

        In detail,
        1. Create two instances of RichTextBox in the application.
        2. Call the RichTextBox.Loa dFile method to load the first RTF file into the
        first RichTextBox control.
        3. Select and copy the content in the first RichTextBox control to
        Clipboard by calling the SelectAll and Copy methods of the RichTextBox
        class.
        4. Paste the content from Clipboard to the second RichTextBox control by
        calling the RichTextBox.Pas te method.
        5. Repeat the step2 to step4 to merge all the RTF files to the second
        RichTextBox control.
        6. Save the content in the second RichTextBox to a .RTF file by calling the
        RichTextBox.Sav eFile method.

        The following is a sample:

        private void MergeRTFFiles(s tring[] rtffiles, string outputfile)
        {
        RichTextBox richTextBox1 = new RichTextBox();
        RichTextBox richTextBox2 = new RichTextBox();

        foreach (string filepath in rtffiles)
        {
        if (File.Exists(fi lepath))
        {
        richTextBox1.Lo adFile(filepath );
        richTextBox1.Se lectAll();
        richTextBox1.Co py();
        richTextBox2.Pa ste();
        }
        }
        richTextBox2.Sa veFile(outputfi le);
        richTextBox1.Di spose();
        richTextBox2.Di spose();
        richTextBox1 = null;
        richTextBox2 = null;
        }

        Hope this helps.
        If you have any question, please feel free to let me know.

        Sincerely,
        Linda Liu
        Microsoft Online Community Support

        Delighting our customers is our #1 priority. We welcome your comments and
        suggestions about how we can improve the support we provide to you. Please
        feel free to let my manager know what you think of the level of service
        provided. You can send feedback directly to my manager at:
        msdnmg@microsof t.com.

        This posting is provided "AS IS" with no warranties, and confers no rights.


        Comment

        Working...