Esempio n. 1
0
 /// <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;
 }
Esempio n. 2
0
 /// <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;
 }
Esempio n. 3
0
 /// <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));
     }
 }