Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.

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

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: 3099
Joined: Tue Sep 06, 2016 8:30 am

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

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

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: 3099
Joined: Tue Sep 06, 2016 8:30 am

Return to Spire.PDF

cron