File size: 18,962 Bytes
82a25a8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
export const icons: Record<string, string | string[]> = {
  merge: ["M8 3H5a2 2 0 00-2 2v3","M21 8V5a2 2 0 00-2-2h-3","M3 16v3a2 2 0 002 2h3","M16 21h3a2 2 0 002-2v-3","M12 8v8","M8 12h8"],
  split: ["M16 3h5v5","M8 3H3v5","M12 22v-8.3a4 4 0 00-1.172-2.872L3 3","M12 22v-8.3a4 4 0 011.172-2.872L21 3"],
  compress: ["M4 14h6v6","M20 10h-6V4","M14 10l7-7","M3 21l7-7"],
  pdf2jpg: "M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z",
  jpg2pdf: ["M14 2H6a2 2 0 00-2 2v16a2 2 0 002 2h12a2 2 0 002-2V8z","M14 2v6h6","M16 13H8","M16 17H8","M10 9H8"],
  rotate: "M1 4v6h6M23 20v-6h-6M20.49 9A9 9 0 005.64 5.64L1 10M23 14l-4.64 4.36A9 9 0 013.51 15",
  watermark: ["M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10"],
  unlock: ["M8 11V7a4 4 0 018 0","M5 11h14a2 2 0 012 2v7a2 2 0 01-2 2H5a2 2 0 01-2-2v-7a2 2 0 012-2z","M12 16v2"],
  protect: ["M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10","M9 12l2 2 4-4"],
  organize: ["M8 6h13","M8 12h13","M8 18h13","M3 6h.01","M3 12h.01","M3 18h.01"],
  ocr: ["M15 3h4a2 2 0 012 2v14a2 2 0 01-2 2h-4","M10 17l5-5-5-5","M13.8 12H3"],
  ai: ["M12 2a10 10 0 110 20A10 10 0 0112 2z","M12 8v4l3 3"],
  upload: ["M21 15v4a2 2 0 01-2 2H5a2 2 0 01-2-2v-4","M17 8l-5-5-5 5","M12 3v12"],
  download: ["M21 15v4a2 2 0 01-2 2H5a2 2 0 01-2-2v-4","M7 10l5 5 5-5","M12 15V3"],
  x: "M18 6L6 18M6 6l12 12",
  check: "M20 6L9 17l-5-5",
  chevronDown: "M6 9l6 6 6-6",
  chevronRight: "M9 18l6-6-6-6",
  arrowLeft: "M19 12H5M12 19l-7-7 7-7",
  menu: ["M3 12h18","M3 6h18","M3 18h18"],
  search: ["M11 19a8 8 0 100-16 8 8 0 000 16z","M21 21l-4.35-4.35"],
  file: ["M14 2H6a2 2 0 00-2 2v16a2 2 0 002 2h12a2 2 0 002-2V8z","M14 2v6h6"],
  star: "M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z",
  zap: "M13 2L3 14h9l-1 8 10-12h-9l1-8z",
  shield: "M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z",
  users: ["M17 21v-2a4 4 0 00-4-4H5a4 4 0 00-4 4v2","M23 21v-2a4 4 0 00-3-3.87","M16 3.13a4 4 0 010 7.75","M9 7a4 4 0 100 8 4 4 0 000-8z"],
  globe: ["M12 2a10 10 0 110 20A10 10 0 0112 2z","M2 12h20","M12 2a15.3 15.3 0 010 20M12 2a15.3 15.3 0 000 20"],
  settings: ["M12 15a3 3 0 100-6 3 3 0 000 6z","M19.4 15a1.65 1.65 0 00.33 1.82l.06.06a2 2 0 010 2.83 2 2 0 01-2.83 0l-.06-.06a1.65 1.65 0 00-1.82-.33 1.65 1.65 0 00-1 1.51V21a2 2 0 01-4 0v-.09A1.65 1.65 0 009 19.4a1.65 1.65 0 00-1.82.33l-.06.06a2 2 0 01-2.83 0 2 2 0 010-2.83l.06-.06A1.65 1.65 0 004.68 15a1.65 1.65 0 00-1.51-1H3a2 2 0 010-4h.09A1.65 1.65 0 004.6 9a1.65 1.65 0 00-.33-1.82l-.06-.06a2 2 0 010-2.83 2 2 0 012.83 0l.06.06A1.65 1.65 0 009 4.68a1.65 1.65 0 001-1.51V3a2 2 0 014 0v.09a1.65 1.65 0 001 1.51 1.65 1.65 0 001.82-.33l.06-.06a2 2 0 012.83 0 2 2 0 010 2.83l-.06.06A1.65 1.65 0 0019.4 9a1.65 1.65 0 001.51 1H21a2 2 0 010 4h-.09a1.65 1.65 0 00-1.51 1z"],
  addPageNumbers: ["M14 2H6a2 2 0 00-2 2v16a2 2 0 002 2h12a2 2 0 002-2V8z","M14 2v6h6","M12 18v-4","M10 16h4"],
  word2pdf: ["M14 2H6a2 2 0 00-2 2v16a2 2 0 002 2h12a2 2 0 002-2V8z","M14 2v6h6","M8 13h2l2 5 2-5h2"],
  pdf2word: ["M14 2H6a2 2 0 00-2 2v16a2 2 0 002 2h12a2 2 0 002-2V8z","M14 2v6h6","M9 13l1.5 5L12 14l1.5 4L15 13"],
  excel2pdf: ["M14 2H6a2 2 0 00-2 2v16a2 2 0 002 2h12a2 2 0 002-2V8z","M14 2v6h6","M9 13l2 2 4-4"],
  pdf2excel: ["M8 3H5a2 2 0 00-2 2v3m18 0V5a2 2 0 00-2-2h-3m0 18h3a2 2 0 002-2v-3M3 16v3a2 2 0 002 2h3","M9 9h6","M9 12h6","M9 15h4"],
  ppt2pdf: ["M14 2H6a2 2 0 00-2 2v16a2 2 0 002 2h12a2 2 0 002-2V8z","M14 2v6h6","M9 14a3 3 0 100-4 3 3 0 000 4z","M14 12h2"],
  sign: ["M17 3a2.828 2.828 0 114 4L7.5 20.5 2 22l1.5-5.5L17 3z","M15 5l4 4"],
  aiTranslate: ["M12 2a10 10 0 110 20A10 10 0 0112 2z","M2 12h20","M12 2a15.3 15.3 0 010 20M12 2a15.3 15.3 0 000 20"],
  aiRewrite: ["M11 4H4a2 2 0 00-2 2v14a2 2 0 002 2h14a2 2 0 002-2v-7","M18.5 2.5a2.121 2.121 0 013 3L12 15l-4 1 1-4 9.5-9.5z"],
  qr: ["M3 3h7v7H3z","M14 3h7v7h-7z","M3 14h7v7H3z","M14 14h3v3h-3z","M17 17h3v3h-3z","M14 20h3"],
  qr2pdf: ["M14 2H6a2 2 0 00-2 2v16a2 2 0 002 2h12a2 2 0 002-2V8z","M14 2v6h6","M7 13h3v3H7z","M14 13h3v3h-3z","M7 10h.01","M14 10h.01"],
  signTyped: ["M11 4H4a2 2 0 00-2 2v14a2 2 0 002 2h14a2 2 0 002-2v-7","M9 20h6","M12 17v3"],
  signStamp: ["M22 11.08V12a10 10 0 11-5.93-9.14","M22 4L12 14.01l-3-3"],
  signDigital: ["M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10","M9 12l2 2 4-4"],
};

export interface Tool {
  id: string;
  label: string;
  desc: string;
  color: string;
  icon: string | string[];
  category: string;
}

export const tools: Tool[] = [
  { id: "merge",          label: "Merge PDF",        desc: "Combine multiple PDFs into a single file",           color: "#4A7C59", icon: icons.merge,          category: "Merge & Split" },
  { id: "split",          label: "Split PDF",        desc: "Extract pages or split PDF into parts",              color: "#6AAF7E", icon: icons.split,          category: "Merge & Split" },
  { id: "compress",       label: "Compress PDF",     desc: "Reduce PDF file size without losing quality",        color: "#40A8E8", icon: icons.compress,       category: "Compress" },
  { id: "pdf2jpg",        label: "PDF to JPG",       desc: "Convert PDF pages to JPG images",                   color: "#5B8FA8", icon: icons.pdf2jpg,        category: "Convert" },
  { id: "jpg2pdf",        label: "JPG to PDF",       desc: "Convert images to PDF document",                    color: "#7A6BAE", icon: icons.jpg2pdf,        category: "Convert" },
  { id: "word2pdf",       label: "Word to PDF",      desc: "Convert .docx Word files to PDF",                   color: "#2B579A", icon: icons.word2pdf,       category: "Convert" },
  { id: "pdf2word",       label: "PDF to Word",      desc: "Extract PDF content to editable .docx",             color: "#185ABD", icon: icons.pdf2word,       category: "Convert" },
  { id: "excel2pdf",      label: "Excel to PDF",     desc: "Convert .xlsx spreadsheets to PDF",                 color: "#107C41", icon: icons.excel2pdf,      category: "Convert" },
  { id: "pdf2excel",      label: "PDF to Excel",     desc: "Extract tables from PDF to .xlsx",                  color: "#1D6F42", icon: icons.pdf2excel,      category: "Convert" },
  { id: "ppt2pdf",        label: "PPT to PDF",       desc: "Convert PowerPoint presentations to PDF",           color: "#7A6BAE", icon: icons.ppt2pdf,        category: "Convert" },
  { id: "rotate",         label: "Rotate PDF",       desc: "Rotate PDF pages left or right",                    color: "#40C8A8", icon: icons.rotate,         category: "Edit & Sign" },
  { id: "addPageNumbers", label: "Add Page Numbers", desc: "Stamp page numbers at chosen position",             color: "#4A7C59", icon: icons.addPageNumbers, category: "Edit & Sign" },
  { id: "watermark",      label: "Watermark PDF",    desc: "Add text or image watermark to PDF",                color: "#6AAF7E", icon: icons.watermark,      category: "Edit & Sign" },
  { id: "sign",           label: "Sign PDF",         desc: "Apply a digital signature to your PDF",             color: "#5B8FA8", icon: icons.sign,           category: "Edit & Sign" },
  { id: "unlock",         label: "Unlock PDF",       desc: "Remove password and restrictions",                  color: "#40C8A8", icon: icons.unlock,         category: "Protect" },
  { id: "protect",        label: "Protect PDF",      desc: "Add password and encrypt your PDF",                 color: "#4A7C59", icon: icons.protect,        category: "Protect" },
  { id: "organize",       label: "Organize PDF",     desc: "Reorder, delete or add pages in PDF",               color: "#6080E8", icon: icons.organize,       category: "Organize" },
  { id: "ocr",            label: "OCR PDF",          desc: "Make scanned PDF searchable and editable",          color: "#40C8A8", icon: icons.ocr,            category: "OCR" },
  { id: "ai",             label: "AI Summarise",     desc: "Get AI summary of your PDF content",                color: "#6AAF7E", icon: icons.ai,             category: "AI" },
  { id: "ai-translate",   label: "AI Translate",     desc: "Translate PDF content to target language",          color: "#4A7C59", icon: icons.aiTranslate,    category: "AI" },
  { id: "ai-rewrite",     label: "AI Rewrite",       desc: "Rewrite PDF content in a new tone or style",        color: "#40C8A8", icon: icons.aiRewrite,      category: "AI" },
  { id: "qr",             label: "QR Generator",     desc: "Generate a QR code from any URL or link",           color: "#0F9D58", icon: icons.qr,             category: "Utilities" },
  { id: "qr2pdf",         label: "QR to PDF",        desc: "Embed a QR code into an existing PDF file",         color: "#0D8A4E", icon: icons.qr2pdf,         category: "Utilities" },
  { id: "pdf2text",       label: "PDF to Text",      desc: "Extract PDF text into a plain text file",           color: "#5B8FA8", icon: icons.file,           category: "Convert" },
  { id: "excel2csv",      label: "Excel to CSV",     desc: "Convert Excel sheets into CSV data",                color: "#107C41", icon: icons.excel2pdf,      category: "Convert" },
  { id: "excel2json",     label: "Excel to JSON",    desc: "Convert Excel rows into JSON records",              color: "#1D6F42", icon: icons.excel2pdf,      category: "Convert" },
  { id: "word2txt",       label: "Word to TXT",      desc: "Convert Word documents to plain text",              color: "#2B579A", icon: icons.word2pdf,       category: "Convert" },
  { id: "word2html",      label: "Word to HTML",     desc: "Convert Word documents to HTML",                    color: "#185ABD", icon: icons.word2pdf,       category: "Convert" },
  { id: "word2markdown",  label: "Word to Markdown", desc: "Convert Word documents to Markdown",                color: "#4A7C59", icon: icons.word2pdf,       category: "Convert" },
  { id: "jpg2png",        label: "JPG to PNG",       desc: "Convert JPG images to PNG",                         color: "#5B8FA8", icon: icons.pdf2jpg,        category: "Convert" },
  { id: "png2jpg",        label: "PNG to JPG",       desc: "Convert PNG images to JPG",                         color: "#6AAF7E", icon: icons.pdf2jpg,        category: "Convert" },
  { id: "png2webp",       label: "PNG to WEBP",      desc: "Convert PNG images to WebP",                        color: "#40A8E8", icon: icons.pdf2jpg,        category: "Convert" },
  { id: "webp2jpg",       label: "WEBP to JPG",      desc: "Convert WebP images to JPG",                        color: "#40C8A8", icon: icons.pdf2jpg,        category: "Convert" },
  { id: "json2csv",       label: "JSON to CSV",      desc: "Convert JSON data to CSV",                          color: "#6080E8", icon: icons.file,           category: "Convert" },
  { id: "csv2json",       label: "CSV to JSON",      desc: "Convert CSV rows to JSON",                          color: "#7A6BAE", icon: icons.file,           category: "Convert" },
  { id: "json2xml",       label: "JSON to XML",      desc: "Convert JSON data to XML",                          color: "#4A7C59", icon: icons.file,           category: "Convert" },
  { id: "xml2json",       label: "XML to JSON",      desc: "Convert XML data to JSON",                          color: "#6AAF7E", icon: icons.file,           category: "Convert" },
  { id: "yaml2json",      label: "YAML to JSON",     desc: "Convert YAML data to JSON",                         color: "#40A8E8", icon: icons.file,           category: "Convert" },
  { id: "pdf2png",        label: "PDF to PNG",       desc: "Convert PDF pages to PNG images",                   color: "#5B8FA8", icon: icons.pdf2jpg,        category: "Convert" },
  { id: "pdf2html",       label: "PDF to HTML",      desc: "Convert PDF content to HTML",                       color: "#6080E8", icon: icons.file,           category: "Convert" },
  { id: "ppt2images",     label: "PPT to Images",    desc: "Export PowerPoint slides as images",                color: "#7A6BAE", icon: icons.ppt2pdf,        category: "Convert" },
  { id: "pdf2ppt",        label: "PDF to PPT",       desc: "Convert PDF pages into PowerPoint slides",          color: "#7A6BAE", icon: icons.ppt2pdf,        category: "Convert" },
  { id: "pdf2epub",       label: "PDF to EPUB",      desc: "Convert PDF files into EPUB ebooks",                color: "#4A7C59", icon: icons.file,           category: "Convert" },
  { id: "epub2pdf",       label: "EPUB to PDF",      desc: "Convert EPUB ebooks to PDF",                        color: "#6AAF7E", icon: icons.file,           category: "Convert" },
  { id: "mobi2epub",      label: "MOBI to EPUB",     desc: "Convert MOBI ebooks to EPUB",                       color: "#40A8E8", icon: icons.file,           category: "Convert" },
  { id: "azw32pdf",       label: "AZW3 to PDF",      desc: "Convert AZW3 ebooks to PDF",                        color: "#40C8A8", icon: icons.file,           category: "Convert" },
  { id: "compressjpg",    label: "Compress JPG",     desc: "Reduce JPG image file size",                        color: "#40A8E8", icon: icons.compress,       category: "Compress" },
  { id: "compresspng",    label: "Compress PNG",     desc: "Optimize PNG image file size",                      color: "#40C8A8", icon: icons.compress,       category: "Compress" },
  { id: "compresswebp",   label: "Compress WEBP",    desc: "Reduce WebP image file size",                       color: "#6080E8", icon: icons.compress,       category: "Compress" },
  { id: "image2text",     label: "Image to Text",    desc: "Extract text from an image",                        color: "#40C8A8", icon: icons.ocr,            category: "OCR" },
  { id: "screenshot2text",label: "Screenshot to Text", desc: "Extract text from screenshots",                   color: "#4A7C59", icon: icons.ocr,            category: "OCR" },
  { id: "handwriting2text",label: "Handwriting to Text", desc: "Extract text from handwriting images",          color: "#6AAF7E", icon: icons.ocr,            category: "OCR" },
  { id: "resizeimage",    label: "Resize Image",     desc: "Resize an image to exact dimensions",               color: "#5B8FA8", icon: icons.settings,       category: "Utilities" },
  { id: "downscaleimage", label: "Downscale Image",  desc: "Shrink images within maximum dimensions",           color: "#6080E8", icon: icons.settings,       category: "Utilities" },
  { id: "cropimage",      label: "Crop Image",       desc: "Crop images by position and size",                  color: "#7A6BAE", icon: icons.settings,       category: "Utilities" },
  { id: "circlecrop",     label: "Circle Crop",      desc: "Crop images into a transparent circle",             color: "#40C8A8", icon: icons.settings,       category: "Utilities" },
  { id: "removebackground", label: "Remove Background", desc: "Remove an image background",                    color: "#4A7C59", icon: icons.pdf2jpg,        category: "Utilities" },
  { id: "transparentbackground", label: "Transparent Background", desc: "Create a transparent image cutout",    color: "#6AAF7E", icon: icons.pdf2jpg,        category: "Utilities" },
  { id: "replacebackground", label: "Replace Background", desc: "Replace image background with a color",        color: "#40A8E8", icon: icons.pdf2jpg,        category: "Utilities" },
  { id: "smartcrop",      label: "Smart Crop",       desc: "Crop around the important image content",           color: "#6080E8", icon: icons.settings,       category: "Utilities" },
  { id: "upscaleimage",   label: "Upscale Image",    desc: "Upscale images with Real-ESRGAN",                   color: "#40C8A8", icon: icons.zap,            category: "AI" },
  { id: "image2cartoon",  label: "Image to Cartoon", desc: "Apply a cartoon-style image effect",                color: "#6AAF7E", icon: icons.ai,             category: "AI" },
  { id: "image2sketch",   label: "Image to Sketch",  desc: "Turn images into sketch-style artwork",             color: "#4A7C59", icon: icons.ai,             category: "AI" },
  { id: "image2anime",    label: "Image to Anime",   desc: "Create an anime-style image effect",                color: "#40A8E8", icon: icons.ai,             category: "AI" },
  { id: "image2avatar",   label: "Image to Avatar",  desc: "Stylize portrait images into avatars",              color: "#7A6BAE", icon: icons.ai,             category: "AI" },
  { id: "upper2lower",    label: "Uppercase to Lowercase", desc: "Convert text to lowercase",                  color: "#4A7C59", icon: icons.file,           category: "Utilities" },
  { id: "lower2upper",    label: "Lowercase to Uppercase", desc: "Convert text to uppercase",                  color: "#6AAF7E", icon: icons.file,           category: "Utilities" },
  { id: "titlecase",      label: "Text to Title Case", desc: "Convert text to title case",                     color: "#40A8E8", icon: icons.file,           category: "Utilities" },
  { id: "text2base64",    label: "Text to Base64",   desc: "Encode text as Base64",                            color: "#6080E8", icon: icons.file,           category: "Utilities" },
  { id: "base642text",    label: "Base64 to Text",   desc: "Decode Base64 into text",                          color: "#7A6BAE", icon: icons.file,           category: "Utilities" },
  { id: "urlencode",      label: "URL Encode",       desc: "Encode text for URLs",                             color: "#40C8A8", icon: icons.file,           category: "Utilities" },
  { id: "urldecode",      label: "URL Decode",       desc: "Decode URL-encoded text",                          color: "#5B8FA8", icon: icons.file,           category: "Utilities" },
];

export const publicToolIds = [
  "merge",
  "split",
  "compress",
  "pdf2jpg",
  "jpg2pdf",
  "word2pdf",
  "pdf2word",
  "excel2pdf",
  "pdf2excel",
  "ppt2pdf",
  "rotate",
  "addPageNumbers",
  "watermark",
  "sign",
  "unlock",
  "protect",
  "organize",
  "ocr",
  "ai",
  "ai-translate",
  "ai-rewrite",
  "qr",
  "qr2pdf",
];

export const publicTools = tools.filter((tool) => publicToolIds.includes(tool.id));

export const categories = ["All Tools", "Merge & Split", "Convert", "Edit & Sign", "Compress", "Protect", "OCR", "Organize", "AI", "Utilities"];

export interface Plan {
  name: string;
  price: string;
  desc: string;
  features: string[];
  featured?: boolean;
}

export const plans: Plan[] = [
  {
    name: "Free",
    price: "₹0",
    desc: "Perfect for occasional use",
    features: ["5 files/day", "Basic PDF tools", "Up to 10MB per file", "Standard processing speed"],
  },
  {
    name: "Pro",
    price: "₹299",
    desc: "For power users and professionals",
    features: ["Unlimited files", "All PDF tools", "Up to 500MB per file", "Priority processing", "No watermarks", "API access"],
    featured: true,
  },
  {
    name: "Team",
    price: "₹799",
    desc: "For teams and businesses",
    features: ["Everything in Pro", "5 team members", "Team dashboard", "Priority support", "Custom branding", "Invoice & receipts"],
  },
];