Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - TextColor and file size
  FAQ FAQ  Forum Search   Register Register  Login Login

TextColor and file size

 Post Reply Post Reply
Author
Message
lbcs View Drop Down
Beginner
Beginner


Joined: 14 Mar 12
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote lbcs Quote  Post ReplyReply Direct Link To This Post Topic: TextColor and file size
    Posted: 30 Jan 14 at 8:24AM
Hi,
   I have to create a simple one-page pdf file with a couple of images and some text.
If I use only black text, as usual, I get a 51Kb pdf file. If I decide to write only one piece of text in blue (leaving the other text in black) the file becomes 65Kb. If I use more colours, no problem, the file remains 65Kb.
Does someone know the reason ?
 
I'm using QuickPDF DLL 8.13
 
Back to Top
AndrewC View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 08 Dec 10
Location: Geelong, Aust
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote AndrewC Quote  Post ReplyReply Direct Link To This Post Posted: 30 Jan 14 at 9:26AM
We would need to see and compare the PDF files to see what is happening and why the file sizes are different.

Using the following code I generated two files - 3.28KB and 3.33KB.

            QP.NewDocument();
            QP.SetOrigin(1);
            QP.DrawText(20, 20, "Black Text");
            QP.SaveToFile("out.pdf");

            QP.NewDocument();
            QP.SetOrigin(1);
            QP.DrawText(20, 20, "Black Text");
            QP.SetTextColor(0, 0, 1);
            QP.DrawText(20, 50, "Blue Text");
            QP.SaveToFile("out1.pdf");

You must be doing something else.  Are you sure you are re-using an existing font and not adding a whole new font ?

Andrew.
Back to Top
lbcs View Drop Down
Beginner
Beginner


Joined: 14 Mar 12
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote lbcs Quote  Post ReplyReply Direct Link To This Post Posted: 05 Feb 14 at 10:02AM
You are right; I have to subset fonts because I need small size pdf files, and there was a mistake in my susbet procedure when I used colours, so I was adding extra-fonts.
 
Thank you
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store