473,507 Members | 2,545 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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
Jun 27 '08 #1
3 2560
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)'
http://kb.adobe.com/selfservice/view...3299&sliceId=2

'5 Tricks to Reduce PDF File Size'
http://blog.nitropdf.com/index.php/2...nkreduce-pdf-f
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:
http://www.filedudes.com/monkey_merg...oad-43076.html

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:
ms****@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
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.
Jun 27 '08 #2
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-****@online.microsoft.comwrote in message
news:bI**************@TK2MSFTNGHUB02.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)'
http://kb.adobe.com/selfservice/view...3299&sliceId=2

'5 Tricks to Reduce PDF File Size'
http://blog.nitropdf.com/index.php/2...nkreduce-pdf-f
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:
http://www.filedudes.com/monkey_merg...oad-43076.html

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:
ms****@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
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.


Jun 27 '08 #3
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.LoadFile 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.Paste 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.SaveFile method.

The following is a sample:

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

foreach (string filepath in rtffiles)
{
if (File.Exists(filepath))
{
richTextBox1.LoadFile(filepath);
richTextBox1.SelectAll();
richTextBox1.Copy();
richTextBox2.Paste();
}
}
richTextBox2.SaveFile(outputfile);
richTextBox1.Dispose();
richTextBox2.Dispose();
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:
ms****@microsoft.com.

This posting is provided "AS IS" with no warranties, and confers no rights.
Jun 27 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
11177
by: William C. White | last post by:
Does anyone know of a way to use PHP /w Authorize.net AIM without using cURL? Our website is hosted on a shared drive and the webhost company doesn't installed additional software (such as cURL)...
2
5773
by: Albert Ahtenberg | last post by:
Hello, I don't know if it is only me but I was sure that header("Location:url") redirects the browser instantly to URL, or at least stops the execution of the code. But appearantely it continues...
3
22957
by: James | last post by:
Hi, I have a form with 2 fields. 'A' 'B' The user completes one of the fields and the form is submitted. On the results page I want to run a query, but this will change subject to which...
0
8431
by: Ollivier Robert | last post by:
Hello, I'm trying to link PHP with Oracle 9.2.0/OCI8 with gcc 3.2.3 on a Solaris9 system. The link succeeds but everytime I try to run php, I get a SEGV from inside the libcnltsh.so library. ...
1
8535
by: Richard Galli | last post by:
I want viewers to compare state laws on a single subject. Imagine a three-column table with a drop-down box on the top. A viewer selects a state from the list, and that state's text fills the...
4
18214
by: Albert Ahtenberg | last post by:
Hello, I have two questions. 1. When the user presses the back button and returns to a form he filled the form is reseted. How do I leave there the values he inserted? 2. When the...
1
6776
by: inderjit S Gabrie | last post by:
Hi all Here is the scenerio ...is it possibly to do this... i am getting valid course dates output on to a web which i have designed ....all is okay so far , look at the following web url ...
2
31341
by: Jack | last post by:
Hi All, What is the PHP equivilent of Oracle bind variables in a SQL statement, e.g. select x from y where z=:parameter Which in asp/jsp would be followed by some statements to bind a value...
3
23531
by: Sandwick | last post by:
I am trying to change the size of a drawing so they are all 3x3. the script below is what i was trying to use to cut it in half ... I get errors. I can display the normal picture but not the...
0
7223
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7314
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7372
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7482
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5623
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4702
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1540
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
411
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.