/// <summary> /// Switches the space. /// </summary> /// <param name="spaceName">Name of the space.</param> public static void SwitchSpace(string spaceName) { if (string.IsNullOrEmpty(spaceName)) { spaceName = DEFAULTSPACENAME; } currentSpace = spaces.ContainsKey(spaceName) ? spaces[spaceName] : null; }
/// <summary> /// Switches the space. /// </summary> /// <param name="objectSpace">The object space.</param> public static void SwitchSpace(PdfObjectSpace objectSpace) { if (objectSpace == null) { throw new PdfArgumentNullException("objectSpace"); } currentSpace = objectSpace; }
/// <summary> /// Creates the space. /// </summary> /// <param name="spaceName">Name of the space.</param> /// <param name="cLevel">The c level.</param> public static void CreateSpace(string spaceName, CompressLevel cLevel) { if (string.IsNullOrEmpty(spaceName)) { spaceName = DEFAULTSPACENAME; } if (spaces.ContainsKey(spaceName)) { spaces[spaceName] = new PdfObjectSpace(cLevel); } else { spaces.Add(spaceName, new PdfObjectSpace(cLevel)); } }