How to save a PDF using fast web format?

Q:

We are using the routine below to generate the fast web format. When
we open the file the status for the file continues Fast Web = no. What
should we do?

info.Put("CreationDate", Obj.CreateString(DataOriginal))
doc.Save(Arquivo, doc.SaveOptions.e_linearized, "%PDF-1.4")
doc.Close()
---
A:

To save with 'fast web' enabled, you need to use pdfdoc.Save() and not
sdfdoc.Save (i.e. SDF.Doc).
For example,

PDFDoc pdfdoc = new PDFDoc(...);
// you porbabbly obtained doc as follows
// SDF.Doc doc = pdfdoc.GetSDFDoc();
pdfdoc.Save(Arquivo, SDF.Doc.SaveOptions.e_linearized, 0);
pdfdoc.Close()