PDF composing and final pdf size

Technical support for Spire.PDF

Moderator: iceblue support

PDF composing and final pdf size

Postby berengan » Fri Jun 30, 2017 3:53 pm

Hi to all,
i've made a test application that write more or less :
100 Canvas.DrawString
25 canvas.drawline

3 different ttf
4 variants (size) for each ttf

CompressionLevel = PdfCompressionLevel.Best

Total 2 pages ... NO IMAGES -->> 85 KB!!!!!!!!!!!!!!!!!!!!!!!!!!

Best Regards
berengan
 
Posts: 4
Joined: Fri Nov 18, 2016 12:44 pm

Re: PDF composing and final pdf size

Postby Betsy.jiang » Mon Jul 03, 2017 8:39 am

Dear berengan,

Sorry for late reply as weekend.
After an initial testing, sorry that I didn't notice the issue you mentioned. Could you please provide us with the code and the font file(if any) you were trying for testing ?

Thanks,
Betsy
E-iceblue support team
User avatar
Betsy.jiang
 
Posts: 1321
Joined: Tue Sep 06, 2016 8:30 am

Re: PDF composing and final pdf size

Postby berengan » Mon Jul 03, 2017 12:44 pm

Ciao Betsy,
in this weekend i've made several test... i will clean the code and i send-you an email.

Thanks
berengan
 
Posts: 4
Joined: Fri Nov 18, 2016 12:44 pm

Re: PDF composing and final pdf size

Postby berengan » Mon Jul 03, 2017 6:00 pm

I've found!!!

Dim sys_font = New System.Drawing.Font("Verdana", 6, mFontStyle_bold)
Dim spire_font = New PdfTrueTypeFont(sys_font, True)

if the font embedded is true type the size of PDF Grow....

.... yes... is normal!!!

Thanks and best regards.
berengan
 
Posts: 4
Joined: Fri Nov 18, 2016 12:44 pm

Re: PDF composing and final pdf size

Postby Betsy.jiang » Tue Jul 04, 2017 1:22 am

Dear berengan,

Glad to hear your issue has been resolved.
If there is any question, please do not hesitate to contact us.

Sincerely,
Betsy
E-iceblue support team
User avatar
Betsy.jiang
 
Posts: 1321
Joined: Tue Sep 06, 2016 8:30 am


Return to Spire.PDF

Who is online

Users browsing this forum: No registered users and 0 guests

cron