Skip to content

Instantly share code, notes, and snippets.

@bewithdhanu
Created November 26, 2024 04:44
Show Gist options
  • Save bewithdhanu/8eb3a8e0badcf85752519be1c36753ab to your computer and use it in GitHub Desktop.
Save bewithdhanu/8eb3a8e0badcf85752519be1c36753ab to your computer and use it in GitHub Desktop.
sample.md
# Label Feature Requirements Breakdown
## 1. Label Size Configuration
- Allow users to select predefined label sizes before starting
- Label sizes should fit within standard A4 paper dimensions
- Multiple labels should automatically arrange on the A4 layout based on size
## 2. Editing Interface
- Provide an A4-sized workspace/canvas for label editing
- Show grid/guidelines for label boundaries
- Display real-time preview of how labels will appear when printed
## 3. Label Creation & Management
- Support creation of multiple labels within the A4 layout
- Each label should contain:
- Image component
- Text component below the image
- Maintain aspect ratio based on chosen label size
- Auto-arrange labels in sequence (left-to-right, top-to-bottom)
## 4. Image Handling
- Support image input from:
- Device camera
- Photo library
- Predefined templates
- Include image cropping tool with:
- Maintain aspect ratio option
- Fixed ration cropping based on what size of label it is
- No rotation controls
## 5. Text Formatting
Each label's text component should support:
- Font style selection
- Font size adjustment
- Text formatting options:
- Bold
- Italic
- Underline
- Color customization:
- Text color
- Text background color
- No Multi-line text support
## 6. Label Management
- Allow deletion of individual labels
- Automatically reflow remaining labels to fill gaps
- Maintain sequential ordering after deletions
- Support rearranging labels via drag-and-drop is not required
## 7. Save & Preview
- Save functionality for the entire label set
- Load previously saved label sets
- Generate PDF preview showing exact print layout
- Option to update existing saved label sets
- Incase text component is empty then image should show in full width & height, if not adjust to fit both of them
## 8. Export
- Export as print-ready PDF
- Maintain exact dimensions for printing
- Preserve all formatting and layout
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment