vba - Size of created pdf file -



vba - Size of created pdf file -

when creating .pdf file using code pasted below size of file gets around 375 kb, when creating pdf using built in pdf creator print menu in excel, file gets 40 kb

worksheets("journal").activate range("journalarea").select activesheet.pagesetup '.papersize = xlpapera4 .zoom = 50 .blackandwhite = true end selection .exportasfixedformat type:=xltypepdf, filename:= _ filepath & title & ".pdf", quality:=xlqualitystandard, includedocproperties:= _ true, ignoreprintareas:=false, openafterpublish:=false end

so question is, including unnecessary info in pdf file, , if how exclude that?

any suggestions much appriciated.

pdf creating software software specialize in creating pdfs. , hence utilize efficient way of creating pdf. on other hand excel not meant pdf creation. there difference in way pdf created in both applications , hence there difference in size.

the can ins excel compromise on pdf quality , not include info in pdf. example

specifying quality changing xlqualitystandard xlqualityminimum in quality:= by not including document properties

as mentioned in comment above, imho can when using .exportasfixedformat

.exportasfixedformat type:=xltypepdf, _ filename:= filepath & title & ".pdf", _ quality:=xlqualityminimum, _ includedocproperties:= false, _ ignoreprintareas:=false, _ openafterpublish:=false

vba excel-vba

Comments

Popular posts from this blog

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

Is there a way to convert an HTML page styled with Bootstrap CSS into email-compatible html? -