<?xml version="1.0" encoding="UTF-8"?>
<!--
  Scan 2 PDF — Outlook add-in manifest (add-in only XML manifest). © Aghapy Tech Services.
  The build (vite.config.ts) writes dist/manifest.xml with every URL pointing at the hosting domain.
-->
<OfficeApp xmlns="http://schemas.microsoft.com/office/appforoffice/1.1"
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xmlns:bt="http://schemas.microsoft.com/office/officeappbasictypes/1.0"
           xmlns:mailappor="http://schemas.microsoft.com/office/mailappversionoverrides/1.0"
           xsi:type="MailApp">
  <Id>daf2cc63-4bd4-4b33-9b75-85f39792fa96</Id>
  <Version>1.0.0.0</Version>
  <ProviderName>Aghapy Tech Services</ProviderName>
  <DefaultLocale>en-US</DefaultLocale>
  <DisplayName DefaultValue="Scan 2 PDF"/>
  <Description DefaultValue="Scan documents from a local scanner and attach them to the email as a PDF."/>
  <IconUrl DefaultValue="https://scan2pdf.aghapyts.com/assets/icon-64.png"/>
  <HighResolutionIconUrl DefaultValue="https://scan2pdf.aghapyts.com/assets/icon-128.png"/>
  <SupportUrl DefaultValue="https://scan2pdf.aghapyts.com/taskpane.html"/>
  <AppDomains>
    <AppDomain>https://scan2pdf.aghapyts.com</AppDomain>
  </AppDomains>
  <Hosts>
    <Host Name="Mailbox"/>
  </Hosts>
  <Requirements>
    <Sets>
      <Set Name="Mailbox" MinVersion="1.8"/>
    </Sets>
  </Requirements>
  <FormSettings>
    <Form xsi:type="ItemEdit">
      <DesktopSettings>
        <SourceLocation DefaultValue="https://scan2pdf.aghapyts.com/taskpane.html"/>
      </DesktopSettings>
    </Form>
  </FormSettings>
  <Permissions>ReadWriteItem</Permissions>
  <Rule xsi:type="RuleCollection" Mode="Or">
    <Rule xsi:type="ItemIs" ItemType="Message" FormType="Edit"/>
  </Rule>
  <DisableEntityHighlighting>false</DisableEntityHighlighting>

  <VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides" xsi:type="VersionOverridesV1_0">
    <VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides/1.1" xsi:type="VersionOverridesV1_1">
      <Requirements>
        <bt:Sets DefaultMinVersion="1.8">
          <bt:Set Name="Mailbox"/>
        </bt:Sets>
      </Requirements>
      <Hosts>
        <Host xsi:type="MailHost">
          <DesktopFormFactor>
            <FunctionFile resid="Commands.Url"/>

            <!-- Button on the ribbon of a NEW / reply / forward message -->
            <ExtensionPoint xsi:type="MessageComposeCommandSurface">
              <OfficeTab id="TabDefault">
                <Group id="scan2pdfGroup">
                  <Label resid="Group.Label"/>
                  <Control xsi:type="Button" id="scan2pdfButton">
                    <Label resid="Scan.Label"/>
                    <Supertip>
                      <Title resid="Scan.Label"/>
                      <Description resid="Scan.Tooltip"/>
                    </Supertip>
                    <Icon>
                      <bt:Image size="16" resid="Icon.16"/>
                      <bt:Image size="32" resid="Icon.32"/>
                      <bt:Image size="80" resid="Icon.80"/>
                    </Icon>
                    <Action xsi:type="ShowTaskpane">
                      <SourceLocation resid="Taskpane.Url"/>
                    </Action>
                  </Control>
                </Group>
              </OfficeTab>
            </ExtensionPoint>
          </DesktopFormFactor>
        </Host>
      </Hosts>

      <Resources>
        <bt:Images>
          <bt:Image id="Icon.16" DefaultValue="https://scan2pdf.aghapyts.com/assets/icon-16.png"/>
          <bt:Image id="Icon.32" DefaultValue="https://scan2pdf.aghapyts.com/assets/icon-32.png"/>
          <bt:Image id="Icon.80" DefaultValue="https://scan2pdf.aghapyts.com/assets/icon-80.png"/>
        </bt:Images>
        <bt:Urls>
          <bt:Url id="Commands.Url" DefaultValue="https://scan2pdf.aghapyts.com/commands.html"/>
          <bt:Url id="Taskpane.Url" DefaultValue="https://scan2pdf.aghapyts.com/taskpane.html"/>
        </bt:Urls>
        <bt:ShortStrings>
          <bt:String id="Group.Label" DefaultValue="Scan 2 PDF"/>
          <bt:String id="Scan.Label" DefaultValue="Scan to PDF"/>
        </bt:ShortStrings>
        <bt:LongStrings>
          <bt:String id="Scan.Tooltip" DefaultValue="Scan pages from your scanner and attach them to this email as a single PDF."/>
        </bt:LongStrings>
      </Resources>
    </VersionOverrides>
  </VersionOverrides>
</OfficeApp>
