This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import type { Knex } from 'knex'; | |
| import app from '../src/app'; | |
| export async function up(knex: Knex): Promise<void> { | |
| const isTest = app.get('postgresql').connection.isTest; | |
| if (process.env.NODE_ENV !== 'development') { | |
| if (!isTest) { | |
| await knex('standards').insert([ | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import type { Knex } from 'knex'; | |
| import app from '../src/app'; | |
| const SET_NAME = 'ENTER NAME'; | |
| export async function up(knex: Knex): Promise<void> { | |
| const isTest = app.get('postgresql').connection.isTest; | |
| if (process.env.NODE_ENV !== 'development') { | |
| if (!isTest) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <TextField | |
| type={showPassword ? 'text' : 'password'} | |
| InputProps={{ | |
| endAdornment: ( | |
| <IconButton | |
| onClick={() => setShowPassword((prev) => !prev)} | |
| > | |
| {showPassword ? <VisibilityOff /> : <Visibility />} | |
| </IconButton> | |
| ), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <TextField | |
| type={showPassword ? 'text' : 'password'} | |
| InputProps={{ | |
| endAdornment: ( | |
| <IconButton | |
| aria-pressed={showPassword ? 'true' : 'false'} | |
| aria-label='toggle password visibility' | |
| onClick={() => setShowPassword((prev) => !prev)} | |
| > | |
| {showPassword ? <VisibilityOff /> : <Visibility />} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # tag_missed_elements.py | |
| # import utils to load required shared libraries | |
| from utils import inputPath, outputPath | |
| from pdfixsdk.Pdfix import * | |
| # find any elements that are untagged, and find tags for them | |
| def TagMissedElements(page:PdfPage): | |
| pDoc = page.GetDoc() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # set_text_color.py | |
| # import utils to load required shared libraries | |
| from utils import inputPath, outputPath | |
| from pdfixsdk.Pdfix import * | |
| def SetTextColor(page: PdfPage, color: PdfColor): | |
| pDoc = page.GetDoc() | |
| content = page.GetContent() | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # set_alt_text.py | |
| # import utils to load required shared libraries | |
| from utils import inputPath, outputPath | |
| from pdfixsdk.Pdfix import * | |
| # sets alt text on nested figures | |
| def SetNestedAltText(struct_elem: PdsStructElement): | |
| for i in range(struct_elem.GetNumChildren()): | |
| # search nested child struct elements |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # mark_images_decorative.py | |
| # import utils to load required shared libraries | |
| from utils import inputPath, outputPath | |
| from pdfixsdk.Pdfix import * | |
| # find any images and mark them as artifacts, for decorative use only | |
| def MarkImagesAsArtifacts(page:PdfPage): | |
| pDoc = page.GetDoc() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # add_alt_text.py | |
| # import utils to load required shared libraries | |
| from utils import inputPath, outputPath | |
| from pdfixsdk.Pdfix import * | |
| def AddAltText(page:PdfPage): | |
| pDoc = page.GetDoc() | |
| content = page.GetContent() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # make_accessible.py | |
| # import utils to load required shared libraries | |
| from pdfixsdk.Pdfix import * | |
| # find any images and mark them as artifacts, for decorative use only | |
| def MarkImagesAsArtifacts(page:PdfPage): | |
| pDoc = page.GetDoc() | |
| content = page.GetContent() | |
| for i in range(content.GetNumObjects()): |
NewerOlder