Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LogoSetting Position #3

Open
fabbaum opened this issue Sep 1, 2024 · 3 comments
Open

LogoSetting Position #3

fabbaum opened this issue Sep 1, 2024 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@fabbaum
Copy link

fabbaum commented Sep 1, 2024

If I define the value for ImagePosition_X as right, the logo is aligned to the right, but the logo proportions are no longer correct.

image

image
@fabbaum fabbaum changed the title LogoSetting LogoSetting Position Sep 1, 2024
@stefanhaerter stefanhaerter self-assigned this Oct 29, 2024
@stefanhaerter stefanhaerter added the bug Something isn't working label Oct 29, 2024
@svenoe svenoe added enhancement New feature or request and removed bug Something isn't working labels Oct 29, 2024
@mathias-promedi
Copy link

Hello @fabbaum ,
i am new to github and this is my first reaction to an issue
and i don't know how to mail you here.
But i saw your screenshot and noticed the qr code.
i could not get it to show like this. Maybe i am to stupid to understand the manual.
But i would appreciate if you cold giv me a little advice.

Thank you verry mutch.
Mathias

@fabbaum
Copy link
Author

fabbaum commented Oct 31, 2024

Hello @fabbaum , i am new to github and this is my first reaction to an issue and i don't know how to mail you here. But i saw your screenshot and noticed the qr code. i could not get it to show like this. Maybe i am to stupid to understand the manual. But i would appreciate if you cold giv me a little advice.

Thank you verry mutch. Mathias

I had a bit of trouble with that too. The scaling in x and y is not proportional. In the meantime, I have created my own package that we use to create the labels for our organisation.
If you also need something like this, you can get inspiration from this repository. ITSMConfigItemLabelPrint

I have made the following settings so that the QR code appears like this:

    <Setting Name="ITSMConfigItem::Frontend::AgentITSMConfigItemLabelPrint###BarcodeSetting" Required="1" Valid="1">
        <Description Translatable="1">Used barcode settings for the label. Options have the following meaning:
- BarcodeField: Attribute of the config item used for the barcode.
- Caption: Whether to put the data below the barcode as caption. Ignored for QR code.
- QRCodeLink: When creating a QR code, set the link destination.
- CustomLink: Define a custom link via Template::Toolkit syntax for QR codes.
- Code: Which type of code to print.
- Zone: The base height of the barcode in points.
- LowerMendingZone: If present and applicable, bars for non-printing characters (e.g. start and stop characters) will be extended downward by this many points, and printing characters will be shown below their respective bars. This is enabled by default for EAN-13 barcodes.
- Font: Font to use for the barcode caption.
- FontSize: Font size to use for the barcode caption.
        </Description>
        <Navigation>Frontend::Agent::View::AgentITSMConfigItemLabelPrint</Navigation>
        <Value>
            <Hash>
                <Item Key="BarcodeField">Number</Item>
                <Item Key="Caption" ValueType="Checkbox">0</Item>
                <Item Key="QRCodeLink" ValueType="Select" SelectedID="AgentITSMConfigItemZoom">
                    <Item ValueType="Option" Value="AgentITSMConfigItemZoom">AgentITSMConfigItemZoom</Item>
                    <Item ValueType="Option" Value="CustomerITSMConfigItemZoom">CustomerITSMConfigItemZoom</Item>
                    <Item ValueType="Option" Value="Custom">Custom</Item>
                </Item>
                <Item Key="CustomLink"></Item>
                <Item Key="Code" ValueType="Select" SelectedID="qr">
                    <Item ValueType="Option" Value="codabar">codabar</Item>
                    <Item ValueType="Option" Value="code128">code128</Item>
                    <Item ValueType="Option" Value="code39">code39</Item>
                    <Item ValueType="Option" Value="ean128">ean128</Item>
                    <Item ValueType="Option" Value="ean13">ean13</Item>
                    <Item ValueType="Option" Value="itf">itf</Item>
                    <Item ValueType="Option" Value="qr">qr</Item>
                </Item>
                <Item Key="Zone">0</Item>
                <Item Key="LowerMendingZone">15</Item>
                <Item Key="Font">Helvetica</Item>
                <Item Key="FontSize">10</Item>
                <Item Key="Scale_X">1</Item>
                <Item Key="Scale_Y">0.1</Item>
                <Item Key="BarcodePosition_X">4</Item>
                <Item Key="BarcodePosition_Y">4</Item>
            </Hash>
        </Value>
    </Setting>

@mathias-promedi
Copy link

Hello @fabbaum , i am new to github and this is my first reaction to an issue and i don't know how to mail you here. But i saw your screenshot and noticed the qr code. i could not get it to show like this. Maybe i am to stupid to understand the manual. But i would appreciate if you cold giv me a little advice.
Thank you verry mutch. Mathias

I had a bit of trouble with that too. The scaling in x and y is not proportional. In the meantime, I have created my own package that we use to create the labels for our organisation. If you also need something like this, you can get inspiration from this repository. ITSMConfigItemLabelPrint

I have made the following settings so that the QR code appears like this:

    <Setting Name="ITSMConfigItem::Frontend::AgentITSMConfigItemLabelPrint###BarcodeSetting" Required="1" Valid="1">
        <Description Translatable="1">Used barcode settings for the label. Options have the following meaning:
- BarcodeField: Attribute of the config item used for the barcode.
- Caption: Whether to put the data below the barcode as caption. Ignored for QR code.
- QRCodeLink: When creating a QR code, set the link destination.
- CustomLink: Define a custom link via Template::Toolkit syntax for QR codes.
- Code: Which type of code to print.
- Zone: The base height of the barcode in points.
- LowerMendingZone: If present and applicable, bars for non-printing characters (e.g. start and stop characters) will be extended downward by this many points, and printing characters will be shown below their respective bars. This is enabled by default for EAN-13 barcodes.
- Font: Font to use for the barcode caption.
- FontSize: Font size to use for the barcode caption.
        </Description>
        <Navigation>Frontend::Agent::View::AgentITSMConfigItemLabelPrint</Navigation>
        <Value>
            <Hash>
                <Item Key="BarcodeField">Number</Item>
                <Item Key="Caption" ValueType="Checkbox">0</Item>
                <Item Key="QRCodeLink" ValueType="Select" SelectedID="AgentITSMConfigItemZoom">
                    <Item ValueType="Option" Value="AgentITSMConfigItemZoom">AgentITSMConfigItemZoom</Item>
                    <Item ValueType="Option" Value="CustomerITSMConfigItemZoom">CustomerITSMConfigItemZoom</Item>
                    <Item ValueType="Option" Value="Custom">Custom</Item>
                </Item>
                <Item Key="CustomLink"></Item>
                <Item Key="Code" ValueType="Select" SelectedID="qr">
                    <Item ValueType="Option" Value="codabar">codabar</Item>
                    <Item ValueType="Option" Value="code128">code128</Item>
                    <Item ValueType="Option" Value="code39">code39</Item>
                    <Item ValueType="Option" Value="ean128">ean128</Item>
                    <Item ValueType="Option" Value="ean13">ean13</Item>
                    <Item ValueType="Option" Value="itf">itf</Item>
                    <Item ValueType="Option" Value="qr">qr</Item>
                </Item>
                <Item Key="Zone">0</Item>
                <Item Key="LowerMendingZone">15</Item>
                <Item Key="Font">Helvetica</Item>
                <Item Key="FontSize">10</Item>
                <Item Key="Scale_X">1</Item>
                <Item Key="Scale_Y">0.1</Item>
                <Item Key="BarcodePosition_X">4</Item>
                <Item Key="BarcodePosition_Y">4</Item>
            </Hash>
        </Value>
    </Setting>

@fabbaum thank you for the reply. ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants