Skip to content

Commit

Permalink
fix: make dpi and output formats configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
annarieger committed Feb 21, 2023
1 parent 5ab1160 commit 0e180b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/PrintForm/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ export const PrintForm: React.FC<PrintFormProps> = ({
<Form.Item
name="dpi"
label={t('PrintForm.dpi')}
initialValue={72}
initialValue={printManager.getDpis()[0]}
>
<ResolutionSelect
printManager={printManager}
Expand All @@ -308,7 +308,7 @@ export const PrintForm: React.FC<PrintFormProps> = ({
>
<OutputFormatSelect
printManager={printManager}
outputFormats={['pdf', 'png']}
outputFormats={outputFormats}
placeholder={t('PrintForm.outputFormatPlaceholder')}
/>
</Form.Item>
Expand Down

0 comments on commit 0e180b0

Please sign in to comment.