iTextSharp.text.pdf.PdfWriter.CompleteInfoDictionary C# (CSharp) Méthode

CompleteInfoDictionary() private méthode

private CompleteInfoDictionary ( PdfDictionary info ) : void
info PdfDictionary
Résultat void
        private void CompleteInfoDictionary(PdfDictionary info)
        {
            if (IsPdfX()) {
                if (info.Get(PdfName.GTS_PDFXVERSION) == null) {
                    if (((PdfXConformanceImp)pdfIsoConformance).IsPdfX1A2001()) {
                        info.Put(PdfName.GTS_PDFXVERSION, new PdfString("PDF/X-1:2001"));
                        info.Put(new PdfName("GTS_PDFXConformance"), new PdfString("PDF/X-1a:2001"));
                    }
                    else if (((PdfXConformanceImp)pdfIsoConformance).IsPdfX32002())
                        info.Put(PdfName.GTS_PDFXVERSION, new PdfString("PDF/X-3:2002"));
                }
                if (info.Get(PdfName.TITLE) == null) {
                    info.Put(PdfName.TITLE, new PdfString("Pdf document"));
                }
                if (info.Get(PdfName.CREATOR) == null) {
                    info.Put(PdfName.CREATOR, new PdfString("Unknown"));
                }
                if (info.Get(PdfName.TRAPPED) == null) {
                    info.Put(PdfName.TRAPPED, new PdfName("False"));
                }
            }
        }