It depends on where the generated PDF should be used later.
If you don't want to save the PDF, use the
Doc GetData Function. Saves a document to memory. ABCpdf.NET PDF Library.[
^]. The returned byte array contains the raw PDF data (same data as when written to a file). Use it within your application, pass it to other applications using the clipboard for example, or send it via network.