@mcp-z/mcp-pdf
    Preparing search index...

    Function pdfImage

    • Returns {
          config: {
              description: "Generate PNG image(s) from PDF pages.\n\nUse this to visually verify PDF output without opening external applications.\n\n**Pages Options:**\n- Single page: `pages: 1` or `pages: 3`\n- Multiple pages: `pages: [1, 3, 5]`\n- All pages: `pages: \"all\"`\n- Default: page 1 only\n\n**Viewport Scale Recommendations:**\n- **0.25 (thumbnail)**: ~150px wide, smallest file (~15-30KB). Use for quick verification.\n- **0.5 (preview)**: ~300px wide, good balance (~40-80KB). **Recommended default.**\n- **1.0 (full)**: ~612px wide, detailed view (~150-300KB). Use when details matter.\n\nLower scales produce smaller files, reducing context usage when sharing images.";
              inputSchema: ZodObject<
                  {
                      pages: ZodOptional<
                          ZodUnion<
                              readonly [ZodNumber, ZodArray<ZodNumber>, ZodLiteral<"all">],
                          >,
                      >;
                      pdfPath: ZodString;
                      viewportScale: ZodOptional<ZodNumber>;
                  },
                  $strip,
              >;
              outputSchema: ZodObject<
                  {
                      images: ZodArray<
                          ZodObject<
                              {
                                  fileSizeBytes: ZodNumber;
                                  height: ZodNumber;
                                  imagePath: ZodString;
                                  pageNumber: ZodNumber;
                                  uri: ZodString;
                                  width: ZodNumber;
                              },
                              $strip,
                          >,
                      >;
                      totalPages: ZodNumber;
                  },
                  $strip,
              >;
              title: "Convert PDF to Image";
          };
          handler: (
              args: {
                  pages?: number | number[] | "all";
                  pdfPath: string;
                  viewportScale?: number;
              },
              extra: StorageExtra,
          ) => Promise<{ [key: string]: unknown }>;
          name: string;
      }